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:
parent
fba643e9f7
commit
2083ecc460
1 changed files with 2 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue