Current section

Files

Jump to
torch priv templates eex phx.gen.html form.html.eex
Raw

priv/templates/eex/phx.gen.html/form.html.eex

<%%= form_for @changeset, @action, [multipart: true, id: "torch-form"], fn f -> %>
<fieldset class="torch-panel">
<legend>
<span>Details</span>
</legend>
<%%= if @changeset.action do %>
<p class="torch-form-error">Oops, something went wrong! Please check the errors below.</p>
<%% end %>
<%= for {label, input, error} <- inputs, input do %>
<div class="torch-form-group">
<%= label %>
<%= input %>
<%= error %>
</div>
<% end %>
<div class="torch-submit-form">
<%%= submit "Submit", class: "torch-submit-button" %>
</div>
</fieldset>
<%% end %>