This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/priv/templates/temple.gen.live/form_component.html.lexs
2020-06-30 20:43:04 -04:00

13 lines
316 B
Text

h2 do: @title
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>"