Sha256: 27673f72423277525017f587910a94319c748a77dacd9e7ad486f4b59b721cba

Contents?: true

Size: 774 Bytes

Versions: 16

Compression:

Stored size: 774 Bytes

Contents

<%%= bootstrap_form_with(model: @<%= singular_table_name %>, local: true, layout: :horizontal, label_col: 'col-sm-2 col-form-label', control_col: 'col-sm-10') do |f| %>

<% attributes.each do |attribute| -%>
<% if attribute.field_type == :check_box -%>
  <%%= f.form_group :<%= attribute.name %>, label: { text: '<%= attribute.name %>' } do %>
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, label: '' %>
  <%% end -%>
<% else -%>
  <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<% end -%>
<% end -%>

  <div class='form-group row'>
    <div class='col-sm-2'></div>
    <div class='col-sm-10'>
      <%%= f.submit 'Submit', class: 'btn btn-primary' %>
      <%%= back_link class: 'btn btn-default pull-right' %>
    </div>
  </div>

<%% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
chaltron-2.0.2 lib/templates/erb/scaffold/_form.html.erb
chaltron-2.0.1 lib/templates/erb/scaffold/_form.html.erb
chaltron-2.0.0 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.7 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.6 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.5 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.4 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.3 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.2 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.1 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.1.0 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.0.10 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.0.9 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.0.8 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.0.7 lib/templates/erb/scaffold/_form.html.erb
chaltron-1.0.6 lib/templates/erb/scaffold/_form.html.erb