Sha256: 33110d7a22897a63f30e282ec5bf42604566b502cf8bb356071717c78fa9d52f

Contents?: true

Size: 488 Bytes

Versions: 16

Compression:

Stored size: 488 Bytes

Contents

module BootstrapForm
  module Datetimepicker
    def date_field(name, *args)
      options = args.extract_options!.symbolize_keys!
      options[:data] = {provide: 'datepicker', 'date-format' => 'L'}.merge(options[:data] || {})
      args << options
      super
    end

    def datetime_field(name, *args)
      options = args.extract_options!.symbolize_keys!
      options[:data] = {provide: 'datepicker'}.merge(options[:data] || {})
      args << options
      super
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
egov_utils-0.1.17 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.16 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.15 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.14 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.13 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.12 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.11 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.10 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.9 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.8 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.7 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.6 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.5 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.4 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.1 lib/bootstrap_form/datetimepicker.rb
egov_utils-0.1.0 lib/bootstrap_form/datetimepicker.rb