Current section

Files

Jump to
phoenix priv templates phx.gen.html edit.html.heex
Raw

priv/templates/phx.gen.html/edit.html.heex

<.header>
Edit <%= schema.human_singular %> <%%= @<%= schema.singular %>.id %>
<:subtitle>Use this form to manage <%= schema.singular %> records in your database.</:subtitle>
</.header>
<.simple_form :let={f} for={@changeset} method="put" action={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}"}>
<.error :if={@changeset.action}>
Oops, something went wrong! Please check the errors below.
</.error>
<%= Mix.Tasks.Phx.Gen.Html.indent_inputs(inputs, 2) %>
<:actions>
<.button>Save <%= schema.human_singular %></.button>
</:actions>
</.simple_form>
<.back navigate={~p"<%= schema.route_prefix %>"}>Back to <%= schema.plural %></.back>