1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

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

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|