Sha256: 634f0082293805c0e72111359c6011303565a4912684100fef911fc10e0e1eba

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

= form_for @<%= resource_name %>, html: { role: "form", class: "form <%= resource_name %>" } do |f|
  <%- attributes.each do |column| -%>
  .form-group
    = f.label :<%= column.name %>, class: 'control-label col-lg-2'
    .col-lg-10
      = f.<%= column.field_type %> :<%= column.name %>, class: 'form-control', required: true
  <%- end -%>
  .form-group
    .col-lg-offset-2.col-lg-10
      = f.submit nil,class: 'btn btn-primary'
      = link_to t('.cancel', default: t("helpers.links.cancel")), <%= controller_name %>_path, class: 'btn btn-primary'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railsstrap-4.0.0.beta3 lib/generators/railsstrap/scaffold/templates/_form.html.haml
railsstrap-4.0.0.beta2 lib/generators/railsstrap/scaffold/templates/_form.html.haml