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

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