Sha256: 89985d6ed848e46c114b53b7cb8fbba77deaa1a06fa4a0a91b2daab50142bd18

Contents?: true

Size: 799 Bytes

Versions: 6

Compression:

Stored size: 799 Bytes

Contents

<%%= simple_form_for(@<%= singular_table_name %>,
  html: { class: 'form-horizontal well' },
  wrapper: :horizontal_form,
  wrapper_mappings: {
    check_boxes: :horizontal_radio_and_checkboxes,
    radio_buttons: :horizontal_radio_and_checkboxes,
    file: :horizontal_file_input,
    boolean: :horizontal_boolean
  }) do |f| %>

  <fieldset>
    <%%= form_legend %>

    <div class="form-inputs">
    <%- attributes.each do |attribute| -%>
      <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %><% (attribute.field_type == :date_select) ? ', as: :string' : '' %>
       %>
    <%- end -%>
    </div>

    <div class="col-sm-9 col-sm-offset-3">
      <%%= f.button :submit, class: 'btn btn-primary' %>
      <%%= cancel_button %>
    </div>
  </fieldset>
<%% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wobapphelpers-4.1.2 lib/generators/templates/erb/scaffold/_form.html.erb
wobapphelpers-4.1.1 lib/generators/templates/erb/scaffold/_form.html.erb
wobapphelpers-4.1.0 lib/generators/templates/erb/scaffold/_form.html.erb
wobapphelpers-4.0.0 lib/generators/templates/erb/scaffold/_form.html.erb
wobapphelpers-3.1.1 lib/generators/templates/erb/scaffold/_form.html.erb
wobapphelpers-3.1.0 lib/generators/templates/erb/scaffold/_form.html.erb