Packages

A way to increase Elixir projects readability and maintenance based on Use Cases and Interactors.

Current section

Files

Jump to
use_case priv templates use_case.gen.phx_resource_html temple form.html.eex
Raw

priv/templates/use_case.gen.phx_resource_html/temple/form.html.eex

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