Sha256: e6517af4d11388a271562d32d54b5b3ef3d577df46174230b983b00d8ca4a6e6

Contents?: true

Size: 363 Bytes

Versions: 8

Compression:

Stored size: 363 Bytes

Contents

# -*- encoding : utf-8 -*-
module RademadeAdmin
  class DateTimeInput < SimpleForm::Inputs::DateTimeInput

    def input(wrapper_options = {})
      @builder.text_field(attribute_name, input_html_options.merge({
        :data => { 'date-time-picker' => '' },
        :value => object.send(attribute_name).try(:strftime, '%d.%m.%Y %R')
      }))
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rademade_admin-0.2.2 app/inputs/rademade_admin/date_time_input.rb
rademade_admin-0.2.1 app/inputs/rademade_admin/date_time_input.rb
rademade_admin-0.2.0 app/inputs/rademade_admin/date_time_input.rb
rademade_admin-0.1.6 app/inputs/rademade_admin/date_time_input.rb
rademade_admin-0.1.5 app/inputs/rademade_admin/date_time_input.rb
rademade_admin-0.1.4 app/inputs/rademade_admin/date_time_input.rb
rademade_admin-0.1.3 app/inputs/rademade_admin/date_time_input.rb
rademade_admin-0.1.2 app/inputs/rademade_admin/date_time_input.rb