chiya/lib/chiya_web/controllers/identity_html/identity_form.html.heex

15 lines
594 B
Text
Raw Normal View History

2023-03-09 21:42:54 +01:00
<.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" label="Name" />
<.input field={f[:rel]} type="text" label="Rel" />
<.input field={f[:url]} type="text" label="Url" />
<.input field={f[:public]} type="checkbox" label="Public" />
<.input field={f[:active]} type="checkbox" label="Active" />
<.input field={f[:icon]} type="textarea" label="Icon" />
2023-03-09 21:42:54 +01:00
<:actions>
<.button>Save Identity</.button>
</:actions>
</.simple_form>