merge with august sprint for commission
This commit is contained in:
13
config/initializers/ranged_datetime_wrapper.rb
Normal file
13
config/initializers/ranged_datetime_wrapper.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user