Sha256: e356e830b676d5308c5e9ad5b985d0b435c34f281ad6a15da60162acaaa0c462
Contents?: true
Size: 1.02 KB
Versions: 9
Compression:
Stored size: 1.02 KB
Contents
# encoding: utf-8 module Wice module Columns #:nodoc: class ViewColumnHtml5Datepicker < ViewColumn #:nodoc: include Wice::Columns::CommonDateDatetimeMixin include Wice::Columns::CommonJsDateDatetimeMixin def do_render(params) #:nodoc: css_class = 'form-control input-sm native-datepicker ' + (auto_reload ? 'auto-reload' : '') date_format = Wice::ConfigurationProvider.value_for(:DATE_FORMAT) '<div class="date-filter wg-html5-datepicker">' + date_field_tag(@name1, params[:fr].try(:strftime, date_format), class: css_class, id: @dom_id) + '<br/>' + date_field_tag(@name2, params[:to].try(:strftime, date_format), class: css_class, id: @dom_id2) + '</div>' end def has_auto_reloading_calendar? #:nodoc: # To be implemented false end end class ConditionsGeneratorColumnHtml5Datepicker < ConditionsGeneratorColumn #:nodoc: include Wice::Columns::CommonJsDateDatetimeConditionsGeneratorMixin end end end
Version data entries
9 entries across 9 versions & 2 rubygems