Sha256: e2e753c74f4d10824ca43c747299f26adfea89f1c2af02bf621662776d42663f

Contents?: true

Size: 674 Bytes

Versions: 17

Compression:

Stored size: 674 Bytes

Contents

<%%= form_with(model: @<%= singular_table_name %>, local: true) do |f| %>
  <%%= errors_for(@<%= singular_table_name %>) %>

<% attributes.each do |attribute| -%>
<%- if attribute.field_type == :check_box %>
  <div class="form-check">
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, class: 'form-check-input' %>
    <%%= f.label :<%= attribute.name %> %>
  </div>
<%- else -%>
  <div class="form-group">
    <%%= f.label :<%= attribute.name %> %>
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, class: 'form-control' %>
  </div>
<% end -%>
<% end -%>
  <div class="form-group">
    <%%= f.submit class: "btn btn-primary" %>
  </div>
<%% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bootstrap_views_generator-0.1.16 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.15 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.14 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.13 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.12 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.11 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.10 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.9 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.8 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.7 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.6 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.5 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.4 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.3 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.2 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.1 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb
bootstrap_views_generator-0.1.0 lib/generators/bootstrap/templates/scaffolds/erb/_form.html.erb