DataetimepickerInJuty
This commit is contained in:
15
app/inputs/time_picker_input.rb
Normal file
15
app/inputs/time_picker_input.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class TimePickerInput < DatePickerInput
|
||||
private
|
||||
|
||||
def display_pattern
|
||||
I18n.t('timepicker.dformat', default: '%R')
|
||||
end
|
||||
|
||||
def picker_pattern
|
||||
I18n.t('timepicker.pformat', default: 'HH:mm')
|
||||
end
|
||||
|
||||
def date_options
|
||||
date_options_base
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user