@@ -1,150 +1,150 | |||||
1 | <h2><%= @copy ? l(:button_copy) : l(:label_bulk_edit_selected_issues) %></h2> |
|
1 | <h2><%= @copy ? l(:button_copy) : l(:label_bulk_edit_selected_issues) %></h2> | |
2 |
|
2 | |||
3 | <ul id="bulk-selection"> |
|
3 | <ul id="bulk-selection"> | |
4 | <% @issues.each do |issue| %> |
|
4 | <% @issues.each do |issue| %> | |
5 | <%= content_tag 'li', link_to_issue(issue) %> |
|
5 | <%= content_tag 'li', link_to_issue(issue) %> | |
6 | <% end %> |
|
6 | <% end %> | |
7 | </ul> |
|
7 | </ul> | |
8 |
|
8 | |||
9 | <%= form_tag(bulk_update_issues_path, :id => 'bulk_edit_form') do %> |
|
9 | <%= form_tag(bulk_update_issues_path, :id => 'bulk_edit_form') do %> | |
10 | <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %> |
|
10 | <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %> | |
11 | <div class="box tabular"> |
|
11 | <div class="box tabular"> | |
12 | <fieldset class="attributes"> |
|
12 | <fieldset class="attributes"> | |
13 | <legend><%= l(:label_change_properties) %></legend> |
|
13 | <legend><%= l(:label_change_properties) %></legend> | |
14 |
|
14 | |||
15 | <div class="splitcontentleft"> |
|
15 | <div class="splitcontentleft"> | |
16 | <% if @allowed_projects.present? %> |
|
16 | <% if @allowed_projects.present? %> | |
17 | <p> |
|
17 | <p> | |
18 | <label for="issue_project_id"><%= l(:field_project) %></label> |
|
18 | <label for="issue_project_id"><%= l(:field_project) %></label> | |
19 | <%= select_tag('issue[project_id]', content_tag('option', l(:label_no_change_option), :value => '') + project_tree_options_for_select(@allowed_projects, :selected => @target_project), |
|
19 | <%= select_tag('issue[project_id]', content_tag('option', l(:label_no_change_option), :value => '') + project_tree_options_for_select(@allowed_projects, :selected => @target_project), | |
20 | :onchange => "updateBulkEditFrom('#{escape_javascript url_for(:action => 'bulk_edit', :format => 'js')}')") %> |
|
20 | :onchange => "updateBulkEditFrom('#{escape_javascript url_for(:action => 'bulk_edit', :format => 'js')}')") %> | |
21 | </p> |
|
21 | </p> | |
22 | <% end %> |
|
22 | <% end %> | |
23 | <p> |
|
23 | <p> | |
24 | <label for="issue_tracker_id"><%= l(:field_tracker) %></label> |
|
24 | <label for="issue_tracker_id"><%= l(:field_tracker) %></label> | |
25 | <%= select_tag('issue[tracker_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@trackers, :id, :name)) %> |
|
25 | <%= select_tag('issue[tracker_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@trackers, :id, :name)) %> | |
26 | </p> |
|
26 | </p> | |
27 | <% if @available_statuses.any? %> |
|
27 | <% if @available_statuses.any? %> | |
28 | <p> |
|
28 | <p> | |
29 | <label for='issue_status_id'><%= l(:field_status) %></label> |
|
29 | <label for='issue_status_id'><%= l(:field_status) %></label> | |
30 | <%= select_tag('issue[status_id]',content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@available_statuses, :id, :name)) %> |
|
30 | <%= select_tag('issue[status_id]',content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@available_statuses, :id, :name)) %> | |
31 | </p> |
|
31 | </p> | |
32 | <% end %> |
|
32 | <% end %> | |
33 |
|
33 | |||
34 | <% if @safe_attributes.include?('priority_id') -%> |
|
34 | <% if @safe_attributes.include?('priority_id') -%> | |
35 | <p> |
|
35 | <p> | |
36 | <label for='issue_priority_id'><%= l(:field_priority) %></label> |
|
36 | <label for='issue_priority_id'><%= l(:field_priority) %></label> | |
37 | <%= select_tag('issue[priority_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(IssuePriority.active, :id, :name)) %> |
|
37 | <%= select_tag('issue[priority_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(IssuePriority.active, :id, :name)) %> | |
38 | </p> |
|
38 | </p> | |
39 | <% end %> |
|
39 | <% end %> | |
40 |
|
40 | |||
41 | <% if @safe_attributes.include?('assigned_to_id') -%> |
|
41 | <% if @safe_attributes.include?('assigned_to_id') -%> | |
42 | <p> |
|
42 | <p> | |
43 | <label for='issue_assigned_to_id'><%= l(:field_assigned_to) %></label> |
|
43 | <label for='issue_assigned_to_id'><%= l(:field_assigned_to) %></label> | |
44 | <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
44 | <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
45 | content_tag('option', l(:label_nobody), :value => 'none') + |
|
45 | content_tag('option', l(:label_nobody), :value => 'none') + | |
46 | principals_options_for_select(@assignables)) %> |
|
46 | principals_options_for_select(@assignables)) %> | |
47 | </p> |
|
47 | </p> | |
48 | <% end %> |
|
48 | <% end %> | |
49 |
|
49 | |||
50 | <% if @safe_attributes.include?('category_id') -%> |
|
50 | <% if @safe_attributes.include?('category_id') -%> | |
51 | <p> |
|
51 | <p> | |
52 | <label for='issue_category_id'><%= l(:field_category) %></label> |
|
52 | <label for='issue_category_id'><%= l(:field_category) %></label> | |
53 | <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
53 | <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
54 | content_tag('option', l(:label_none), :value => 'none') + |
|
54 | content_tag('option', l(:label_none), :value => 'none') + | |
55 | options_from_collection_for_select(@categories, :id, :name)) %> |
|
55 | options_from_collection_for_select(@categories, :id, :name)) %> | |
56 | </p> |
|
56 | </p> | |
57 | <% end %> |
|
57 | <% end %> | |
58 |
|
58 | |||
59 | <% if @safe_attributes.include?('fixed_version_id') -%> |
|
59 | <% if @safe_attributes.include?('fixed_version_id') -%> | |
60 | <p> |
|
60 | <p> | |
61 | <label for='issue_fixed_version_id'><%= l(:field_fixed_version) %></label> |
|
61 | <label for='issue_fixed_version_id'><%= l(:field_fixed_version) %></label> | |
62 | <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
62 | <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
63 | content_tag('option', l(:label_none), :value => 'none') + |
|
63 | content_tag('option', l(:label_none), :value => 'none') + | |
64 | version_options_for_select(@versions.sort)) %> |
|
64 | version_options_for_select(@versions.sort)) %> | |
65 | </p> |
|
65 | </p> | |
66 | <% end %> |
|
66 | <% end %> | |
67 |
|
67 | |||
68 | <% @custom_fields.each do |custom_field| %> |
|
68 | <% @custom_fields.each do |custom_field| %> | |
69 | <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %></p> |
|
69 | <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %></p> | |
70 | <% end %> |
|
70 | <% end %> | |
71 |
|
71 | |||
72 | <% if @copy && @attachments_present %> |
|
72 | <% if @copy && @attachments_present %> | |
73 | <p> |
|
73 | <p> | |
74 | <label for='copy_attachments'><%= l(:label_copy_attachments) %></label> |
|
74 | <label for='copy_attachments'><%= l(:label_copy_attachments) %></label> | |
75 | <%= check_box_tag 'copy_attachments', '1', true %> |
|
75 | <%= check_box_tag 'copy_attachments', '1', true %> | |
76 | </p> |
|
76 | </p> | |
77 | <% end %> |
|
77 | <% end %> | |
78 |
|
78 | |||
79 | <% if @copy && @subtasks_present %> |
|
79 | <% if @copy && @subtasks_present %> | |
80 | <p> |
|
80 | <p> | |
81 | <label for='copy_subtasks'><%= l(:label_copy_subtasks) %></label> |
|
81 | <label for='copy_subtasks'><%= l(:label_copy_subtasks) %></label> | |
82 | <%= check_box_tag 'copy_subtasks', '1', true %> |
|
82 | <%= check_box_tag 'copy_subtasks', '1', true %> | |
83 | </p> |
|
83 | </p> | |
84 | <% end %> |
|
84 | <% end %> | |
85 |
|
85 | |||
86 | <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> |
|
86 | <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> | |
87 | </div> |
|
87 | </div> | |
88 |
|
88 | |||
89 | <div class="splitcontentright"> |
|
89 | <div class="splitcontentright"> | |
90 | <% if @safe_attributes.include?('is_private') %> |
|
90 | <% if @safe_attributes.include?('is_private') %> | |
91 | <p> |
|
91 | <p> | |
92 | <label for='issue_is_private'><%= l(:field_is_private) %></label> |
|
92 | <label for='issue_is_private'><%= l(:field_is_private) %></label> | |
93 | <%= select_tag('issue[is_private]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
93 | <%= select_tag('issue[is_private]', content_tag('option', l(:label_no_change_option), :value => '') + | |
94 | content_tag('option', l(:general_text_Yes), :value => '1') + |
|
94 | content_tag('option', l(:general_text_Yes), :value => '1') + | |
95 | content_tag('option', l(:general_text_No), :value => '0')) %> |
|
95 | content_tag('option', l(:general_text_No), :value => '0')) %> | |
96 | </p> |
|
96 | </p> | |
97 | <% end %> |
|
97 | <% end %> | |
98 |
|
98 | |||
99 | <% if @safe_attributes.include?('parent_issue_id') && @project %> |
|
99 | <% if @safe_attributes.include?('parent_issue_id') && @project %> | |
100 | <p> |
|
100 | <p> | |
101 | <label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label> |
|
101 | <label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label> | |
102 | <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %> |
|
102 | <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %> | |
103 | </p> |
|
103 | </p> | |
104 | <%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project)}')" %> |
|
104 | <%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project)}')" %> | |
105 | <% end %> |
|
105 | <% end %> | |
106 |
|
106 | |||
107 | <% if @safe_attributes.include?('start_date') %> |
|
107 | <% if @safe_attributes.include?('start_date') %> | |
108 | <p> |
|
108 | <p> | |
109 | <label for='issue_start_date'><%= l(:field_start_date) %></label> |
|
109 | <label for='issue_start_date'><%= l(:field_start_date) %></label> | |
110 | <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %> |
|
110 | <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %> | |
111 | </p> |
|
111 | </p> | |
112 | <% end %> |
|
112 | <% end %> | |
113 |
|
113 | |||
114 | <% if @safe_attributes.include?('due_date') %> |
|
114 | <% if @safe_attributes.include?('due_date') %> | |
115 | <p> |
|
115 | <p> | |
116 | <label for='issue_due_date'><%= l(:field_due_date) %></label> |
|
116 | <label for='issue_due_date'><%= l(:field_due_date) %></label> | |
117 | <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %> |
|
117 | <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %> | |
118 | </p> |
|
118 | </p> | |
119 | <% end %> |
|
119 | <% end %> | |
120 |
|
120 | |||
121 | <% if @safe_attributes.include?('done_ratio') && Issue.use_field_for_done_ratio? %> |
|
121 | <% if @safe_attributes.include?('done_ratio') && Issue.use_field_for_done_ratio? %> | |
122 | <p> |
|
122 | <p> | |
123 | <label for='issue_done_ratio'><%= l(:field_done_ratio) %></label> |
|
123 | <label for='issue_done_ratio'><%= l(:field_done_ratio) %></label> | |
124 | <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> |
|
124 | <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> | |
125 | </p> |
|
125 | </p> | |
126 | <% end %> |
|
126 | <% end %> | |
127 | </div> |
|
127 | </div> | |
128 |
|
||||
129 | </fieldset> |
|
128 | </fieldset> | |
130 |
|
129 | |||
131 | <fieldset><legend><%= l(:field_notes) %></legend> |
|
130 | <fieldset> | |
|
131 | <legend><%= l(:field_notes) %></legend> | |||
132 | <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> |
|
132 | <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> | |
133 | <%= wikitoolbar_for 'notes' %> |
|
133 | <%= wikitoolbar_for 'notes' %> | |
134 | </fieldset> |
|
134 | </fieldset> | |
135 | </div> |
|
135 | </div> | |
136 |
|
136 | |||
137 | <p> |
|
137 | <p> | |
138 |
|
|
138 | <% if @copy %> | |
139 |
|
|
139 | <%= hidden_field_tag 'copy', '1' %> | |
140 |
|
|
140 | <%= submit_tag l(:button_copy) %> | |
141 |
|
|
141 | <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> | |
142 |
|
|
142 | <% elsif @target_project %> | |
143 |
|
|
143 | <%= submit_tag l(:button_move) %> | |
144 |
|
|
144 | <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> | |
145 |
|
|
145 | <% else %> | |
146 |
|
|
146 | <%= submit_tag l(:button_submit) %> | |
147 |
|
|
147 | <% end %> | |
148 | </p> |
|
148 | </p> | |
149 |
|
149 | |||
150 | <% end %> |
|
150 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now