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>
|
|
|
|
<p><%= f.check_box :is_in_roadmap %></p>
|
2009-12-09 13:58:51 +03:00
|
|
|
|
2012-07-05 16:20:07 +04:00
|
|
|
<p>
|
|
|
|
<label><%= l(:field_core_fields) %></label>
|
|
|
|
<% Tracker::CORE_FIELDS.each do |field| %>
|
|
|
|
<label class="block">
|
|
|
|
<%= check_box_tag 'tracker[core_fields][]', field, @tracker.core_fields.include?(field) %>
|
|
|
|
<%= l("field_#{field}".sub(/_id$/, '')) %>
|
|
|
|
</label>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<%= hidden_field_tag 'tracker[core_fields][]', '' %>
|
|
|
|
|
2009-12-09 13:58:51 +03:00
|
|
|
<% if IssueCustomField.all.any? %>
|
|
|
|
<p>
|
2011-09-18 06:46:05 +04:00
|
|
|
<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 %>
|
2009-12-09 13:58:51 +03:00
|
|
|
</p>
|
|
|
|
<%= hidden_field_tag 'tracker[custom_field_ids][]', '' %>
|
|
|
|
<% end %>
|
|
|
|
|
2008-03-15 11:27:38 +03:00
|
|
|
<% if @tracker.new_record? && @trackers.any? %>
|
2011-10-29 05:20:00 +04:00
|
|
|
<p><label for="copy_workflow_from"><%= l(:label_copy_workflow_from) %></label>
|
2008-03-15 11:27:38 +03:00
|
|
|
<%= 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-12-09 14:03:55 +03:00
|
|
|
<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %>
|
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>
|
2012-08-10 22:41:24 +04:00
|
|
|
<%= render_project_nested_lists(@projects) do |p|
|
2009-01-29 17:22:56 +03:00
|
|
|
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>
|