Skip to content

Commit

Permalink
Use :div as wrapper for bootstrap instead
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Jan 31, 2012
1 parent a369f04 commit 5aaa775
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SimpleForm.setup do |config|
b.use :error, :tag => :span, :class => :error
end
<% if options.bootstrap? %>
config.wrappers :bootstrap, :tag => 'fieldset', :class => 'control-group', :error_class => 'error' do |b|
config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b|
b.use :placeholder
b.use :label, :class => 'control-label'
b.use :tag => 'div', :class => 'controls' do |ba|
Expand All @@ -55,7 +55,7 @@ SimpleForm.setup do |config|
end
end

config.wrappers :prepend, :tag => 'fieldset', :class => "control-group", :error_class => 'error' do |b|
config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
b.use :placeholder
b.use :label, :class => 'control-label'
b.use :hint, :tag => 'span', :class => 'help-block'
Expand All @@ -67,7 +67,7 @@ SimpleForm.setup do |config|
end
end

config.wrappers :append, :tag => 'fieldset', :class => "control-group", :error_class => 'error' do |b|
config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
b.use :placeholder
b.use :label, :class => 'control-label'
b.use :hint, :tag => 'span', :class => 'help-block'
Expand Down

0 comments on commit 5aaa775

Please sign in to comment.