Sha256: 158425ab35520a55d139acc290ba13e781faeb0abc6d9622d976333ee195a615

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
  <%% if @<%= singular_table_name %>.errors.any? %>
    <div class="alert-message error">
      <%%= f.error_notification %>
    </div>
  <%% end %>

  <div class="inputs">
  <%- attributes.each do |attribute| -%>
    <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
  <%- end -%>
  </div>

  <div class="actions">
    <%%= f.button :submit, :class => "btn primary" %>
  </div>
<%% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bootstrap-generators-1.4.0 lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb
bootstrap-generators-1.0.1 lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb
bootstrap-generators-1.0.0 lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb