14 lines
426 B
Ruby
Executable File
14 lines
426 B
Ruby
Executable File
SimpleForm.setup do |config|
|
|
config.wrappers :ranged_datetime, tag: 'div', class: 'form-group col-md-6', error_class: 'has-error' do |b|
|
|
b.use :html5
|
|
b.use :placeholder
|
|
b.optional :readonly
|
|
|
|
b.use :label, class: 'control-label'
|
|
b.use :input, class: 'form-control'
|
|
|
|
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
|
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
|
end
|
|
end
|