lib/generators/bootstrap/themed/templates/_form.html.haml in bootstrap-sass-extras-0.0.5 vs lib/generators/bootstrap/themed/templates/_form.html.haml in bootstrap-sass-extras-0.0.6
- old
+ new
@@ -1,10 +1,11 @@
= 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 %>'
+ .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-actions
- = f.submit nil, :class => 'btn btn-primary'
- = link_to t('.cancel', :default => t("helpers.links.cancel")), <%= controller_routing_path %>_path, :class => 'btn'
+ .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'
\ No newline at end of file