Permalink
Browse files

Fix indent on forms

  • Loading branch information...
1 parent 9918975 commit 865826339840441e96dbca5dd23ae1e42a0e3e78 @brandonjmckay committed Oct 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/generators/haml/scaffold/templates/_form.html.haml
@@ -6,10 +6,12 @@
- @<%= singular_table_name %>.errors.full_messages.each do |msg|
%li= msg
-<% for attribute in attributes -%>
+ <% for attribute in attributes -%>
.control-group
= f.label :<%= attribute.name %>, :class => "control-label"
.controls
= f.<%= attribute.field_type %> :<%= attribute.name %>, :placeholder => "<%= attribute.name %>"
-<% end -%>
+ <% end -%>
+ .control-group
+ .control
= f.submit 'Save', :class => "btn"

0 comments on commit 8658263

Please sign in to comment.