%= error_messages_for 'custom_field' %>
<%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :disabled => !@custom_field.new_record? %>
<%= f.text_field :name, :size => 50, :required => true %>
<%= f.text_area :description, :rows => 7 %>
<% if @custom_field.format.multiple_supported %><%= f.check_box :multiple %> <% if !@custom_field.new_record? && @custom_field.multiple %> <%= l(:text_turning_multiple_off) %> <% end %>
<% end %> <%= render_custom_field_format_partial f, @custom_field %> <%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %><% if @custom_field.new_record? %> <%= submit_tag l(:button_create) %> <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> <% else %> <%= submit_tag l(:button_save) %> <% end %>
<%= f.check_box :is_required %>
<% if %w(UserCustomField).include?(@custom_field.class.name) %><%= f.check_box :visible %>
<% end %> <% if @custom_field.is_a?(UserCustomField) %><%= f.check_box :editable %>
<% end %> <% if %w(IssueCustomField UserCustomField ProjectCustomField VersionCustomField GroupCustomField TimeEntryCustomField).include?(@custom_field.class.name) && @custom_field.format.is_filter_supported %><%= f.check_box :is_filter %>
<% end %> <% if %w(IssueCustomField ProjectCustomField).include?(@custom_field.class.name) && @custom_field.format.searchable_supported %><%= f.check_box :searchable %>
<% end %> <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>