Apply the horizontal select wrapper to date and time.

This commit is contained in:
Ulisses Almeida 2015-03-31 20:26:38 -03:00
parent 52d5d4a66b
commit 34f73c2e0d
2 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,9 @@
* `date/time/datetime` inputs now correctly generate the label `for` attribute when
HTML5 compatibility is explicitly enabled. [@ericsullivan](https://github.com/ericsullivan)
* The boostrap datetime, date and time now has a nice format on bootstrap.
[ulissesalmeida][https://github.com/ulissesalmeida] [eltonchrls][https://github.com/eltonchrls]
## 3.1.0
### enhancements

View File

@ -122,7 +122,7 @@ SimpleForm.setup do |config|
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
end
config.wrappers :horizontal_select_date, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
config.wrappers :multi_select, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
b.use :html5
b.optional :readonly
b.use :label, class: 'control-label'
@ -142,6 +142,8 @@ SimpleForm.setup do |config|
radio_buttons: :vertical_radio_and_checkboxes,
file: :vertical_file_input,
boolean: :vertical_boolean,
datetime: :horizontal_select_date,
datetime: :multi_select,
date: :multi_select,
time: :multi_select
}
end