Sha256: e5e238ea290a113ad09d7ad3a3ba5bcb7d569e3662a2335c3d75922c03658a17

Contents?: true

Size: 812 Bytes

Versions: 15

Compression:

Stored size: 812 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="form-actions col-sm-9 col-sm-offset-3">
      <%%= f.button :submit, class: 'btn btn-primary' %>
      <%%= cancel_button %>
    </div>
  </fieldset>
<%% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wobauth-6.0.1 lib/templates/erb/scaffold/_form.html.erb
wobauth-6.0.0 lib/templates/erb/scaffold/_form.html.erb
wobauth-5.1.3 lib/templates/erb/scaffold/_form.html.erb
wobauth-5.1.2 lib/templates/erb/scaffold/_form.html.erb
wobauth-5.1.1 lib/templates/erb/scaffold/_form.html.erb
wobauth-5.1.0 lib/templates/erb/scaffold/_form.html.erb
wobauth-5.0.2 lib/templates/erb/scaffold/_form.html.erb
wobauth-5.0.1 lib/templates/erb/scaffold/_form.html.erb
wobauth-5.0.0 lib/templates/erb/scaffold/_form.html.erb
wobauth-4.0.0 lib/templates/erb/scaffold/_form.html.erb
wobauth-3.4.8 lib/templates/erb/scaffold/_form.html.erb
wobauth-3.4.7 lib/templates/erb/scaffold/_form.html.erb
wobauth-3.4.6 lib/templates/erb/scaffold/_form.html.erb
wobauth-3.4.5 lib/templates/erb/scaffold/_form.html.erb
wobauth-3.4.4 lib/templates/erb/scaffold/_form.html.erb