<% property_name = property[:name] length = property[:length].to_i label = property[:pretty_name] required = !property[:nullable?] || property[:serial?] %>
<%= text_field(property_name, :maxlength => length, :label => label) %>

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