2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'tracker' %>
|
2009-01-29 17:22:56 +03:00
|
|
|
|
|
|
|
<div class="splitcontentleft">
|
|
|
|
<div class="box tabular">
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[form:tracker]-->
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= f.text_field :name, :required => true %></p>
|
2007-02-04 12:18:40 +03:00
|
|
|
<p><%= f.check_box :is_in_chlog %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= f.check_box :is_in_roadmap %></p>
|
2009-12-09 13:58:51 +03:00
|
|
|
|
|
|
|
<% if IssueCustomField.all.any? %>
|
|
|
|
<p>
|
|
|
|
<label><%= l(:label_custom_field_plural) %></label>
|
|
|
|
<% IssueCustomField.all.each do |field| %>
|
|
|
|
<label class="block">
|
|
|
|
<%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.include?(field) %>
|
|
|
|
<%=h field.name %>
|
|
|
|
</label>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<%= hidden_field_tag 'tracker[custom_field_ids][]', '' %>
|
|
|
|
<% end %>
|
|
|
|
|
2008-03-15 11:27:38 +03:00
|
|
|
<% if @tracker.new_record? && @trackers.any? %>
|
|
|
|
<p><label><%= l(:label_copy_workflow_from) %></label>
|
|
|
|
<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p>
|
2007-04-02 21:45:21 +04:00
|
|
|
<% end %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[eoform:tracker]-->
|
2006-09-02 17:33:23 +04:00
|
|
|
</div>
|
2009-01-29 17:22:56 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="splitcontentright">
|
|
|
|
<% if @projects.any? %>
|
|
|
|
<fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend>
|
|
|
|
<%= 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) %>
|
|
|
|
<p><%= check_all_links 'tracker_project_ids' %></p>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
|
|
|
</div>
|