Sha256: dcfdaed0ad115ce381cf26e452fe98736a15b0da8f66bb5e45eb0b3cc47978fb

Contents?: true

Size: 606 Bytes

Versions: 9

Compression:

Stored size: 606 Bytes

Contents

= form_for @<%= resource_name %>, html: { class: "form form-horizontal <%= resource_name %>" } do |f|
  <%- columns.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
    = f.error_span(:<%= column.name %>)
  <%- 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_routing_path %>_path, :class => 'btn btn-default'

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
twitter-bootstrap-rails-5.0.0 lib/generators/bootstrap/themed/templates/_form.html.haml
bootstrap_plus-0.1.0 lib/generators/bootstrap_plus/resource_view/templates/_form.html.haml
twitter-bootstrap-rails-4.0.0 lib/generators/bootstrap/themed/templates/_form.html.haml
twitter-bootstrap-rails-3.2.2 lib/generators/bootstrap/themed/templates/_form.html.haml
twitter-bootstrap-rails-3.2.1.rc1 lib/generators/bootstrap/themed/templates/_form.html.haml
railsstrap-3.3.0 lib/generators/railsstrap/themed/templates/_form.html.haml
railsstrap-3.2.0.3 lib/generators/railsstrap/themed/templates/_form.html.haml
railsstrap-3.2.0.2 lib/generators/railsstrap/themed/templates/_form.html.haml
railsstrap-3.2.0.1 lib/generators/railsstrap/themed/templates/_form.html.haml