Sha256: 2146b15c44e7f1a271957b20deab8c54e07b487b6b505cc212707ae06802d2e2
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
= form_for @<%= resource_name %>, html: { class: 'form-horizontal' } do |f| <%- columns.each do |column| -%> .form-group = f.label :<%= column.name %>, class: 'control-label col-md-2' .col-md-10 = f.<%= column.field_type %> :<%= column.name %>, class: '<%= column.field_type %> form-control' <%- end -%> .form-group .col-md-offset-2.col-md-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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-sass-extras-0.1.0 | lib/generators/bootstrap/themed/templates/_form.html.haml |
bootstrap-sass-extras-0.0.7 | lib/generators/bootstrap/themed/templates/_form.html.haml |