forked from bofh/fetsite
Calendar Klasse überarbeitet Views,gefixt, Pictures hinzugefügt
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class DateStringInput < FormtasticBootstrap::Inputs::StringInput
|
||||
def input_html_options
|
||||
super.merge(:class => "datetext", :onclick =>"beep", :value=>I18n.l(@object.send(method.to_sym)))
|
||||
value = (@object.send(method.to_sym))
|
||||
super.merge(:class => "datetext", :onclick =>"beep", :value=>I18n.l((value.is_a?(Time)||value.is_a?(Date)||value.is_a?(DateTime)) ? value : Time.now))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user