adding html5 component by default for the prepend and append wrappers as well - #471

This commit is contained in:
Ivan Schneider 2012-02-27 15:17:56 +01:00
parent fba643e9f7
commit 2083ecc460
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ SimpleForm.setup do |config|
end
config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
b.use :html5
b.use :placeholder
b.use :label
b.wrapper :tag => 'div', :class => 'controls' do |input|
@ -69,6 +70,7 @@ SimpleForm.setup do |config|
end
config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
b.use :html5
b.use :placeholder
b.use :label
b.wrapper :tag => 'div', :class => 'controls' do |input|