Use Bootstrap formatting on "new garden" form.

This commit is contained in:
Miles Gould
2012-12-21 10:36:34 +00:00
parent cfb300bbad
commit 8cd97deea2

View File

@@ -1,4 +1,4 @@
= form_for @garden do |f|
= form_for @garden, :html => {:class => "form-horizontal"} do |f|
- if @garden.errors.any?
#error_explanation
%h2= "#{pluralize(@garden.errors.count, "error")} prohibited this garden from being saved:"
@@ -6,8 +6,8 @@
- @garden.errors.full_messages.each do |msg|
%li= msg
.field
= f.label :name
= f.text_field :name
.actions
= f.submit 'Save'
.control_group
= f.label "Garden name: ", :class => 'control-label'
.controls= f.text_field :name
.form-actions
= f.submit 'Save', :class => 'btn'