Class: FormtasticBootstrap::Inputs::DatetimeInput

Inherits:
Formtastic::Inputs::DatetimeInput
  • Object
show all
Includes:
Base, Base::Stringish, Base::Timeish
Defined in:
lib/formtastic-bootstrap/inputs/datetime_input.rb

Instance Method Summary collapse

Methods included from Base::Timeish

#date_input_html, #fragment_id, #fragment_input_html, #label_html, #time_input_html

Methods included from Base::Stringish

#wrapper_html_options

Methods included from Base::Wrapping

#clearfix_div_wrapping, #generic_input_wrapping, #inline_inputs_div_wrapping, #input_div_wrapping, #wrapper_html_options

Methods included from Base::Labelling

#label_html_options

Methods included from Base::Html

#input_html_options

Methods included from Base::Hints

#hint_html

Methods included from Base::Errors

#error_first_html, #error_html, #error_list_html, #error_none_html, #error_sentence_html

Instance Method Details

#to_htmlObject



8
9
10
11
12
13
14
15
# File 'lib/formtastic-bootstrap/inputs/datetime_input.rb', line 8

def to_html
  generic_input_wrapping do
    inline_inputs_div_wrapping do
      # This newline matters.
      date_input_html << "\n".html_safe << time_input_html
    end
  end
end