15 lines
491 B
Text
15 lines
491 B
Text
|
<.simple_form :let={f} for={@changeset} action={@action}>
|
||
|
<.error :if={@changeset.action}>
|
||
|
Oops, something went wrong! Please check the errors below.
|
||
|
</.error>
|
||
|
|
||
|
<.input field={f[:name]} type="text" />
|
||
|
<.input field={f[:content]} type="textarea" label="Content" rows="5" class="font-mono" />
|
||
|
<.input field={f[:regex]} type="text" label="Regex" />
|
||
|
<.input field={f[:slug]} type="text" label="Slug" />
|
||
|
|
||
|
<:actions>
|
||
|
<.button>Save Tag</.button>
|
||
|
</:actions>
|
||
|
</.simple_form>
|