<%= error_messages_for 'custom_field' %>

<%= text_field 'custom_field', 'name' %>

<%= select("custom_field", "field_format", custom_field_formats_for_select) %>

<%= text_field 'custom_field', 'min_length', :size => 5 %> - <%= text_field 'custom_field', 'max_length', :size => 5 %>
(<%=l(:text_min_max_length_info)%>)

<%= text_field 'custom_field', 'regexp', :size => 50 %>
(<%=l(:text_regexp_info)%>)

<%= text_area 'custom_field', 'possible_values', :rows => 5, :cols => 60 %>
(<%=l(:text_possible_values_info)%>)

<% case type.to_s when "IssueCustomField" %>
<%=l(:label_tracker_plural)%> <% for tracker in @trackers %> checked="checked"<%end%> > <%= tracker.name %> <% end %>
 

<%= check_box 'custom_field', 'is_required' %>

<%= check_box 'custom_field', 'is_for_all' %>

<% when "UserCustomField" %>

<%= check_box 'custom_field', 'is_required' %>

<% when "ProjectCustomField" %>

<%= check_box 'custom_field', 'is_required' %>

<% end %>