33c95186fb
Code is gross
15 lines
339 B
Elixir
15 lines
339 B
Elixir
form_for @changeset, @action, fn f ->
|
|
if @changeset.action do
|
|
div class: "alert alert-danger" do
|
|
p do: "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
|