legendary-doc-site/apps/app/priv/templates/phx.gen.html/form.html.eex

16 lines
375 B
Elixir
Raw Normal View History

2020-07-29 17:07:36 +00:00
<%%= form_for @changeset, @action, fn f -> %>
<%%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<%% end %>
<%= for {label, input, error} <- inputs, input do %>
<%= label %>
<%= input %>
<%= error %>
<% end %>
<div>
<%%= submit "Save" %>
</div>
<%% end %>