lib/alchemy/resources_helper.rb in alchemy_cms-3.4.2 vs lib/alchemy/resources_helper.rb in alchemy_cms-3.5.0.rc1
- old
+ new
@@ -94,11 +94,13 @@
when 'boolean'
options
when 'date', 'datetime'
options.merge as: 'string',
input_html: {
- type: 'date',
- value: l(resource_instance_variable.send(attribute[:name]) || Time.current, format: :datepicker)
+ type: attribute[:type].to_s,
+ value: l(resource_instance_variable.send(attribute[:name]) || Time.current,
+ format: "#{attribute[:type]}picker".to_sym
+ )
}
when 'time'
options.merge(as: 'time')
when 'text'
options.merge(as: 'text', input_html: {rows: 4})