Class: DateTimePickerInput
- Inherits:
-
SimpleForm::Inputs::StringInput
- Object
- SimpleForm::Inputs::StringInput
- DateTimePickerInput
- Includes:
- ActionView::Context, ActionView::Helpers::FormTagHelper
- Defined in:
- app/inputs/date_time_picker_input.rb
Instance Method Summary collapse
Instance Method Details
#input ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/inputs/date_time_picker_input.rb', line 5 def input = [:label] l = if == false "" else || object.class.human_attribute_name(attribute_name) end field_set_tag(l, class: (input_html_classes + ["uc-form-fieldset-datetime", "inline-inputs", "legend-as-label"]).map(&:to_s).join(" ")) do (date_field + time_field + timezone_label) end end |
#label ⇒ Object
19 20 21 |
# File 'app/inputs/date_time_picker_input.rb', line 19 def label "" end |