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

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