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

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