Sha256: 27c552a7c529145886fbc506c360d381fd3a4782ed877f30af306567067342f7

Contents?: true

Size: 506 Bytes

Versions: 39

Compression:

Stored size: 506 Bytes

Contents

= form_for @<%= resource_name %>, :html => { :class => "form-horizontal" } do |f|
  <%- columns.each do |column| -%>
  .control-group
    = f.label :<%= column.name %>, :class => 'control-label'
    .controls
      = f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %>'
  <%- end -%>
  .form-actions
    = 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

39 entries across 39 versions & 9 rubygems

Version Path
devbootsrap-0.0.7 lib/generators/bootstrap/themed/templates/_form.html.slim
devbootsrap-0.0.6 lib/generators/bootstrap/themed/templates/_form.html.slim
devbootsrap-0.0.5 lib/generators/bootstrap/themed/templates/_form.html.slim
devbootsrap-0.0.4 lib/generators/bootstrap/themed/templates/_form.html.slim
devbootsrap-0.0.3 lib/generators/bootstrap/themed/templates/_form.html.slim
bootstrap-sass-extras-0.0.5 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.2.8 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.2.7 lib/generators/bootstrap/themed/templates/_form.html.slim
bootstrap-sass-extras-0.0.4 lib/generators/bootstrap/themed/templates/_form.html.slim
bootstrap-sass-extras-0.0.3 lib/generators/bootstrap/themed/templates/_form.html.slim
bootstrap-sass-extras-0.0.2 lib/generators/bootstrap/themed/templates/_form.html.slim
bootstrap-sass-extras-0.0.1 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.2.6 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.2.5 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.2.4 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.2.3 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.2.1 lib/generators/bootstrap/themed/templates/_form.html.slim
rails-cancan-bootstrap-scaffold-0.0.1 lib/generators/cancan_bootstrap/views/templates/_form.html.slim
twitter-bootstrap-rails-2.2.0 lib/generators/bootstrap/themed/templates/_form.html.slim
twitter-bootstrap-rails-2.1.9 lib/generators/bootstrap/themed/templates/_form.html.slim