Module: UnobtrusiveDatePicker

Defined in:
lib/unobtrusive_date_picker.rb

Defined Under Namespace

Modules: AssetTagHelper, OptionParser, UnobtrusiveDatePickerHelper Classes: DateTimePickerSelector

Constant Summary collapse

DATEPICKER_DEFAULT_NAME_ID_SUFFIXES =
{ :year  => {:id => '',   :name => 'year'},
:month => {:id => 'mm', :name => 'month'},
:day   => {:id => 'dd', :name => 'day'} }
DATEPICKER_DAYS_OF_WEEK =
{ :Monday     => '0',
:Tuesday    => '1',
:Wednesday  => '2',
:Thursday   => '3',
:Friday     => '4',
:Saturday   => '5',
:Sunday     => '6'}
DATEPICKER_DIVIDERS =
{ 'slash' => '/',
'dash'  => '-',
'dot'   => '.',
'space' => ' ' }
RANGE_DATE_FORMAT =
'%Y-%m-%d'