legendary-doc-site/apps/app/priv/templates/phx.gen.live/form_component.html.leex

15 lines
341 B
Text
Raw Normal View History

2020-07-29 17:07:36 +00:00
<h2><%%= @title %></h2>
<%%= f = form_for @changeset, "#",
id: "<%= schema.singular %>-form",
phx_target: @myself,
phx_change: "validate",
phx_submit: "save" %>
<%= for {label, input, error} <- inputs, input do %>
<%= label %>
<%= input %>
<%= error %>
<% end %>
<%%= submit "Save", phx_disable_with: "Saving..." %>
</form>