Current section

Files

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

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

<.header>
New <%= schema.human_singular %>
<:subtitle>Use this form to manage <%= schema.singular %> records in your database.</:subtitle>
</.header>
<.simple_form :let={f} for={@changeset} action={~p"<%= schema.route_prefix %>"}>
<.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>