chiya/lib/chiya_web/controllers/tag_html/tag_form.html.heex
2023-09-10 22:55:16 +02:00

14 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>