<%= labelled_form_for @project, html: {id: 'project_issue_tracking' } do |f| %> <%= hidden_field_tag 'tab', 'issues' %> <% unless @trackers.empty? %>
<%= toggle_checkboxes_link('#project_trackers input[type=checkbox]') %><%= l(:label_tracker_plural)%> <% if User.current.admin? %>
<%= link_to sprite_icon('settings', l(:label_administration)), trackers_path, :class => "icon icon-settings" %>
<% end %> <% @trackers.each do |tracker| %> <% end %> <%= hidden_field_tag 'project[tracker_ids][]', '' %>
<% end %> <% unless @issue_custom_fields.empty? %>
<%= toggle_checkboxes_link('#project_issue_custom_fields input[type=checkbox]:enabled') %><%=l(:label_custom_field_plural)%> <% if User.current.admin? %>
<%= link_to sprite_icon('settings', l(:label_administration)), custom_fields_path, :class => "icon icon-settings" %>
<% end %> <% all_issue_custom_field_ids = @project.all_issue_custom_fields.ids %> <% @issue_custom_fields.each do |custom_field| %> <% end %> <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %>
<% end %>
<% if @project.safe_attribute?('default_version_id') %>

<%= f.select :default_version_id, project_default_version_options(@project), include_blank: l(:label_none) %>

<% end %> <% if @project.safe_attribute?('default_assigned_to_id') %>

<%= f.select :default_assigned_to_id, project_default_assigned_to_options(@project), include_blank: l(:label_none) %>

<% end %> <% if @project.safe_attribute?('default_issue_query_id') %>

<%= f.select :default_issue_query_id, project_default_issue_query_options(@project), include_blank: l(:label_none) %><%=l 'text_allowed_queries_to_select' %>

<% end %>

<%= submit_tag l(:button_save) %>

<% end %>