Method: DaterangeInput#input_html_options
- Defined in:
- app/inputs/daterange_input.rb
#input_html_options(input_name = gt_input_name) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'app/inputs/daterange_input.rb', line 21 def (input_name = gt_input_name) current_value = @object.send(input_name) { :size => 12, :class => "datepicker", :max => 10, :readonly => 'readonly', :value => current_value.respond_to?(:strftime) ? current_value.strftime("%Y-%m-%d") : "" } end |