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

10 lines
213 B
Elixir

<%%= form_for @changeset, @action, [], fn f -> %>
<div>
<%= for input <- Mix.Legendary.inputs(schema) do %>
<%= input %>
<% end %>
<div>
<%%= styled_button "Save" %>
</div>
</div>
<%% end %>