Class: Cdx::DatePickerInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- Cdx::DatePickerInput
- Defined in:
- app/inputs/cdx/date_picker_input.rb
Instance Method Summary collapse
Instance Method Details
#calendar ⇒ Object
13 14 15 16 17 |
# File 'app/inputs/cdx/date_picker_input.rb', line 13 def calendar template.content_tag(:span, class: 'input-group-addon') do template.concat('<i class="fa fa-calendar"></i>'.html_safe) end end |
#input(wrapper_options) ⇒ Object
2 3 4 5 6 7 |
# File 'app/inputs/cdx/date_picker_input.rb', line 2 def input() template.content_tag(:div, class: 'input-group date form_datetime') do template.concat @builder.text_field(attribute_name, ) template.concat calendar end end |
#input_html_options ⇒ Object
9 10 11 |
# File 'app/inputs/cdx/date_picker_input.rb', line 9 def super.merge(class: 'form-control datepicker') end |