Sha256: 637225f11828592807c82ed250a6346e816fb5a400eb4be630026d4708d89324
Contents?: true
Size: 557 Bytes
Versions: 19
Compression:
Stored size: 557 Bytes
Contents
module Plugins module Core class DateTimeCell < Plugins::Core::Cell def datepicker render end private def value data&.[]('timestamp') || @options[:default_value] end def render_label @options[:form].label :data, field.name, class: 'mdl-textfield__label' end def render_datepicker @options[:form].text_field 'data[timestamp]', value: value, placeholder: @options[:placeholder], class: 'datepicker mdl-textfield__input', required: required? end end end end
Version data entries
19 entries across 19 versions & 1 rubygems