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.html/form.html.exs
2019-07-01 22:48:51 -04:00

13 lines
327 B
Elixir

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