app/views/main/_datetime.html.erb in merb-admin-0.8.5 vs app/views/main/_datetime.html.erb in merb-admin-0.8.6
- old
+ new
@@ -1,12 +1,12 @@
-<%
- property_name = property[:name]
- value = @object.send(property_name)
- label = property[:pretty_name]
- required = !property[:nullable?]
-%>
- <div>
- <%= text_field(property_name, :class => "vDateField", :value => value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d %H:%M:%S") : nil, :label => label) %>
- <p class="help">
- <%= required ? "Required." : "Optional." %>
- </p>
- </div>
+<%
+ property_name = property[:name]
+ value = @object.send(property_name)
+ label = property[:pretty_name]
+ required = !property[:nullable?]
+%>
+ <div>
+ <%= text_field(property_name, :class => "vDateField", :value => value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d %H:%M:%S") : nil, :label => label) %>
+ <p class="help">
+ <%= required ? "Required." : "Optional." %>
+ </p>
+ </div>