<% property_name = property[:name] value = @object.send(property_name) label = property[:pretty_name] required = !property[:nullable?] %>
<%= text_field(property_name, :class => "vDateField", :value => value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d %H:%M:%S") : nil, :label => label) %>

<%= required ? "Required." : "Optional." %>