Sha256: 897ec828c58b0a985093fd3097f2495a2bad1ec98aed96ff82866c780914514a

Contents?: true

Size: 596 Bytes

Versions: 9

Compression:

Stored size: 596 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'
    = 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'

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.slim
bootstrap_plus-0.1.0 lib/generators/bootstrap_plus/resource_view/templates/_form.html.slim
twitter-bootstrap-rails-4.0.0 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-3.2.2 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-3.2.1.rc1 lib/generators/bootstrap/themed/templates/_form.html.slim
railsstrap-3.3.0 lib/generators/railsstrap/themed/templates/_form.html.slim
railsstrap-3.2.0.3 lib/generators/railsstrap/themed/templates/_form.html.slim
railsstrap-3.2.0.2 lib/generators/railsstrap/themed/templates/_form.html.slim
railsstrap-3.2.0.1 lib/generators/railsstrap/themed/templates/_form.html.slim