Class: FlexaFormtasticBootstrap::Inputs::DatePickerInput

Inherits:
Formtastic::Inputs::DatetimeInput
  • Object
show all
Includes:
Base, Base::Stringish, Base::Timeish
Defined in:
lib/flexa_formtastic_bootstrap/inputs/date_picker_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::Wrapping

#clearfix_div_wrapping, #generic_input_wrapping, #inline_inputs_div_wrapping, #input_div_wrapping, #prepended_input_wrapping

Methods included from Base::Labelling

#label_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

#input_html_optionsObject



18
19
20
# File 'lib/flexa_formtastic_bootstrap/inputs/date_picker_input.rb', line 18

def input_html_options
  super.merge(:class => "datepicker_flexa")
end

#to_htmlObject



8
9
10
11
12
# File 'lib/flexa_formtastic_bootstrap/inputs/date_picker_input.rb', line 8

def to_html
  generic_input_wrapping do
    builder.text_field(method, input_html_options)
  end
end

#wrapper_html_optionsObject



14
15
16
# File 'lib/flexa_formtastic_bootstrap/inputs/date_picker_input.rb', line 14

def wrapper_html_options
  #super.merge(:class => "#{super[:class]} datePicker" )
end