Class: DateTimePickerInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Includes:
ActionView::Context, ActionView::Helpers::FormTagHelper
Defined in:
app/inputs/date_time_picker_input.rb

Instance Method Summary collapse

Instance Method Details

#inputObject



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_from_options = options[:label]

  l = if label_from_options == false
        ""
      else
        label_from_options || 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

#labelObject



19
20
21
# File 'app/inputs/date_time_picker_input.rb', line 19

def label
  ""
end