Sha256: 6b14671f3fbf28668d068f03010fda3f347fbd915df755e0d6c51d4119acac1e

Contents?: true

Size: 595 Bytes

Versions: 10

Compression:

Stored size: 595 Bytes

Contents

= render layout: 'tenon/fields/base', locals: { f: f, method_name: method_name, opts: opts }, class: 'row' do
  .inner8
    = f.super_text_field "#{method_name}_date", value: f.object.send(method_name).try(:strftime, '%d %B, %Y'), data: { behavior: 'datepicker' }, class: 'input-block__text-field input-block__text-field--stacked', placeholder: 'Day Month, Year'
  .inner4.omega
    = f.super_text_field "#{method_name}_time", value: f.object.send(method_name).try(:strftime, '%-l:%M %p %Z'), class: 'input-block__text-field', data: { behavior: 'timepicker' }, placeholder: '00:00 AM'
  .spacer

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tenon-2.1.0 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.8 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.7 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.6 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.5 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.4 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.3 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.2 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.1 app/views/tenon/fields/_date_time_picker.html.haml
tenon-2.0.0 app/views/tenon/fields/_date_time_picker.html.haml