%= error_messages_for 'custom_field' %>
<%= text_field 'custom_field', 'name' %>
<%= select("custom_field", "typ", CustomField::TYPES) %>
<%= check_box 'custom_field', 'is_required' %>
<%= check_box 'custom_field', 'is_for_all' %>
(<%=_('0 means no restriction')%>)
<%= text_field 'custom_field', 'min_length', :size => 5 %> -
<%= text_field 'custom_field', 'max_length', :size => 5 %>
(eg. ^[A-Z0-9]+$)
<%= text_field 'custom_field', 'regexp', :size => 50 %>
(separator: |)
<%= text_area 'custom_field', 'possible_values', :rows => 5, :cols => 60 %>