@@ -1,41 +1,41 | |||
|
1 | 1 | <%= error_messages_for 'tracker' %> |
|
2 | 2 | |
|
3 | 3 | <div class="splitcontentleft"> |
|
4 | 4 | <div class="box tabular"> |
|
5 | 5 | <!--[form:tracker]--> |
|
6 | 6 | <p><%= f.text_field :name, :required => true %></p> |
|
7 | 7 | <p><%= f.check_box :is_in_roadmap %></p> |
|
8 | 8 | |
|
9 | 9 | <% if IssueCustomField.all.any? %> |
|
10 | 10 | <p> |
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
11 | <label><%= l(:label_custom_field_plural) %></label> | |
|
12 | <% IssueCustomField.all.each do |field| %> | |
|
13 | <label class="block"> | |
|
14 | <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.include?(field) %> | |
|
15 | <%=h field.name %> | |
|
16 | </label> | |
|
17 | <% end %> | |
|
18 | 18 | </p> |
|
19 | 19 | <%= hidden_field_tag 'tracker[custom_field_ids][]', '' %> |
|
20 | 20 | <% end %> |
|
21 | 21 | |
|
22 | 22 | <% if @tracker.new_record? && @trackers.any? %> |
|
23 | 23 | <p><label><%= l(:label_copy_workflow_from) %></label> |
|
24 | 24 | <%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p> |
|
25 | 25 | <% end %> |
|
26 | 26 | <!--[eoform:tracker]--> |
|
27 | 27 | </div> |
|
28 | 28 | <%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %> |
|
29 | 29 | </div> |
|
30 | 30 | |
|
31 | 31 | <div class="splitcontentright"> |
|
32 | 32 | <% if @projects.any? %> |
|
33 | 33 | <fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend> |
|
34 | 34 | <%= project_nested_ul(@projects) do |p| |
|
35 | 35 | content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.include?(p), :id => nil) + ' ' + h(p)) |
|
36 | 36 | end %> |
|
37 | 37 | <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %> |
|
38 | 38 | <p><%= check_all_links 'tracker_project_ids' %></p> |
|
39 | 39 | </fieldset> |
|
40 | 40 | <% end %> |
|
41 | 41 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now