clean up note form
This commit is contained in:
parent
4c59e3413d
commit
250091d25f
2 changed files with 16 additions and 4 deletions
|
@ -1,8 +1,14 @@
|
||||||
<.header>
|
<.header>
|
||||||
Edit Note <%= @note.id %>
|
<%= @note.name %>
|
||||||
<:subtitle>Use this form to manage note records in your database.</:subtitle>
|
<:actions>
|
||||||
|
<.link href={~p"/admin/notes/#{@note.id}"}>
|
||||||
|
<.button><.icon name="hero-arrow-left" /> Back to Note</.button>
|
||||||
|
</.link>
|
||||||
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<.note_form
|
<.note_form
|
||||||
changeset={@changeset}
|
changeset={@changeset}
|
||||||
action={~p"/admin/notes/#{@note}"}
|
action={~p"/admin/notes/#{@note}"}
|
||||||
|
|
|
@ -2,8 +2,14 @@
|
||||||
<.error :if={@changeset.action}>
|
<.error :if={@changeset.action}>
|
||||||
Oops, something went wrong! Please check the errors below.
|
Oops, something went wrong! Please check the errors below.
|
||||||
</.error>
|
</.error>
|
||||||
<.input field={f[:name]} type="text" label="Name" />
|
|
||||||
<.input field={f[:content]} type="textarea" label="Content" rows="15" />
|
<.input field={f[:name]} type="text" />
|
||||||
|
<.input field={f[:content]}
|
||||||
|
type="textarea"
|
||||||
|
label="Content"
|
||||||
|
rows="15"
|
||||||
|
class="font-mono"
|
||||||
|
/>
|
||||||
<.input field={f[:slug]} type="text" label="Slug" />
|
<.input field={f[:slug]} type="text" label="Slug" />
|
||||||
<.input field={f[:published_at]} type="datetime-local" label="Published at" />
|
<.input field={f[:published_at]} type="datetime-local" label="Published at" />
|
||||||
<.input
|
<.input
|
||||||
|
|
Loading…
Reference in a new issue