<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <%= error_messages_for 'tracker' %>

<%= f.text_field :name, :required => true %>

<%= f.check_box :is_in_roadmap %>

<% if IssueCustomField.all.any? %>

<% IssueCustomField.all.each do |field| %> <% end %>

<%= hidden_field_tag 'tracker[custom_field_ids][]', '' %> <% end %> <% if @tracker.new_record? && @trackers.any? %>

<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %>

<% end %>
<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %>
<% if @projects.any? %>
<%= l(:label_project_plural) %> <%= project_nested_ul(@projects) do |p| content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.include?(p), :id => nil) + ' ' + h(p)) end %> <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %>

<%= check_all_links 'tracker_project_ids' %>

<% end %>