<%= error_messages_for 'tracker' %>

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

<%= f.check_box :is_in_chlog %>

<%= f.check_box :is_in_roadmap %>

<% if @tracker.new_record? && @trackers.any? %>

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

<% end %>
<% 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 %>