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

10 lines
235 B
Elixir

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