1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
|
[%# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Myk Melez <myk@mozilla.org>
# Max Kanat-Alexander <mkanat@bugzilla.org>
# Frédéric Buclin <LpSolit@gmail.com>
# Guy Pyrzak <guy.pyrzak@gmail.com>
# Reed Loden <reed@reedloden.com>
#%]
[% PROCESS global/variables.none.tmpl %]
[% dontchange = "--do_not_change--" %]
<input type="hidden" name="dontchange" value="[% dontchange FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
<script [% script_nonce FILTER none %]>
function SetCheckboxes(value) {
var elements = document.forms.changeform.getElementsByTagName('input'),
numelements = elements.length,
item, i;
for (i = 0; i < numelements; i++) {
item = elements[i];
if (item.type === 'checkbox' && item.name.match(/^id_/)) {
item.checked = value;
}
}
}
document.write(' <input type="button" name="uncheck_all" value="Uncheck All" onclick="SetCheckboxes(false);">');
document.write(' <input type="button" name="check_all" value="Check All" onclick="SetCheckboxes(true);">');
</script>
<hr>
<p style="font-size:smaller">
To change multiple [% terms.bugs %]:</p>
<ol style="font-size:smaller">
<li>Check the [% terms.bugs %] you want to change above.</li>
<li>Make your changes in the form fields below. If the change
you are making requires an explanation, include it in
the comments box.</li>
<li>Click the <em>Commit</em> button.</li>
</ol>
<table id="form">
<tr>
<th><label for="product">Product:</label></th>
<td>
[% PROCESS selectmenu menuname = "product"
menuitems = products
property = "name" %]
</td>
<th><label for="version">Version:</label></th>
<td>
[% PROCESS selectmenu menuname = "version"
menuitems = versions
property = "" %]
</td>
</tr>
<tr>
<th><label for="component">Component:</label></th>
<td>
[% PROCESS selectmenu menuname = "component"
menuitems = components %]
</td>
<th>
<label for="priority">
<a href="https://wiki.mozilla.org/BMO/UserGuide/BugFields#priority">Priority</a>:
</label>
</th>
<td>
[% PROCESS selectmenu menuname = "priority"
menuitems = priorities %]
</td>
</tr>
<tr>
<th>
<label for="rep_platform">
<a href="https://wiki.mozilla.org/BMO/UserGuide/BugFields#rep_platform">Platform</a>:
</label>
</th>
<td>
[% PROCESS selectmenu menuname = "rep_platform"
menuitems = platforms %]
</td>
<th>
<label for="bug_severity">
<a href="https://wiki.mozilla.org/BMO/UserGuide/BugFields#bug_severity">Severity</a>:
</label>
</th>
<td>
[% PROCESS selectmenu menuname = "bug_severity"
menuitems = severities %]
</td>
</tr>
<tr>
<th>
<label for="op_sys">
<a href="https://wiki.mozilla.org/BMO/UserGuide/BugFields#op_sys">OS</a>:
</label>
</th>
<td [% " colspan=\"3\"" IF !Param("usetargetmilestone") %]>
[% PROCESS selectmenu menuname = "op_sys"
menuitems = op_sys %]
</td>
[% IF Param("usetargetmilestone") %]
<th><label for="target_milestone">Target Milestone:</label></th>
<td>
[% PROCESS selectmenu menuname = "target_milestone"
menuitems = targetmilestones %]
</td>
[% END %]
</tr>
<tr>
<th><label for="bug_status">Status:</label></th>
<td colspan="3">[% PROCESS status_section %]</td>
</tr>
[% IF user.is_timetracker %]
<tr>
<th><label for="estimated_time">Estimated Hours:</label></th>
<td>
<input id="estimated_time"
name="estimated_time"
value="[% dontchange FILTER html %]"
size="6">
</td>
[% PROCESS bug/field.html.tmpl
field = bug_fields.deadline, value = dontchange
editable = 1, allow_dont_change = 1 %]
</tr>
<tr>
<th><label for="remaining_time">Remaining Hours:</label></th>
<td>
<input id="remaining_time"
name="remaining_time"
value="[% dontchange FILTER html %]"
size="6">
</td>
<th> </th>
<td> </td>
</tr>
[% END %]
<tr>
<th><label for="assigned_to">Assignee:</label></th>
<td colspan="3">
[% INCLUDE global/userselect.html.tmpl
id => "assigned_to"
name => "assigned_to"
value => dontchange
size => 40
%]
<input type="checkbox" id="set_default_assignee" name="set_default_assignee" value="1">
<label for="set_default_assignee">Reset Assignee to default</label>
</td>
</tr>
[% IF Param("useqacontact") %]
<tr>
<th><label for="qa_contact">QA Contact:</label></th>
<td colspan="3">
[% INCLUDE global/userselect.html.tmpl
id => "qa_contact"
name => "qa_contact"
value => dontchange
size => 40
%]
<input type="checkbox" id="set_default_qa_contact" name="set_default_qa_contact" value="1">
<label for="set_default_qa_contact">Reset QA Contact to default</label>
</td>
</tr>
[% END %]
<tr>
<th><label for="masscc">CC List:</label></th>
<td colspan="3">
[% INCLUDE global/userselect.html.tmpl
id => "masscc"
name => "masscc"
value => ""
size => 40
multiple => 5
%]
<select name="ccaction">
<option value="add">Add these to the CC List</option>
<option value="remove">Remove these from the CC List</option>
</select>
</td>
</tr>
[% IF use_keywords %]
<tr>
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.keywords, editable = 1
desc_url = "describekeywords.cgi"
%]
<td colspan="3">
[% INCLUDE bug/field.html.tmpl
field = bug_fields.keywords, editable = 1, value = keywords
no_tds = 1
%]
<select name="keywordaction">
<option value="add">Add these keywords</option>
<option value="remove">Delete these keywords</option>
<option value="set">Make the keywords be exactly this list</option>
</select>
</td>
</tr>
[% END %]
<tr>
<th>
<label for="dependson">
Depends On:
</label>
</th>
<td colspan="3">
<input id="dependson" name="dependson" size="40">
<select name="dependson_action">
<option value="add">Add these IDs</option>
<option value="remove">Delete these IDs</option>
</select>
</td>
</tr>
<tr>
<th>
<label for="blocked">
Blocks:
</label>
</th>
<td colspan="3">
<input id="blocked" name="blocked" size="40">
<select name="blocked_action">
<option value="add">Add these IDs</option>
<option value="remove">Delete these IDs</option>
</select>
</td>
</tr>
[% IF Param('usestatuswhiteboard') %]
<tr>
<td align="right">
<b>Status Whiteboard:</b>
</td>
<td colspan="7">
<input name="status_whiteboard"
value="[% dontchange FILTER html %]" size="60">
</td>
</tr>
[% END %]
[% USE Bugzilla %]
[%# Show all legal values and all fields, ignoring visibility controls. %]
[% bug = default.defined ? default : 0 %]
[% custom_fields = [] %]
[% IF one_product.defined %]
[% custom_fields = Bugzilla.active_custom_fields(product=>one_product) %]
[% ELSE %]
[% custom_fields = Bugzilla.active_custom_fields %]
[% END %]
[% FOREACH field = custom_fields %]
[%# BMO hook for controlling field visibility %]
[% Hook.process('custom_field', 'list/edit-multiple.html.tmpl', ) %]
[% NEXT IF field.hidden %]
<tr>
[% PROCESS bug/field.html.tmpl bug = bug
value = dontchange
editable = 1
allow_dont_change = 1 %]
</tr>
[% END %]
[% Hook.process("after_custom_fields") %]
</table>
<b><label for="comment">Additional Comments:</label></b>
[% IF user.is_insider %]
<input type="checkbox" name="comment_is_private" value="1"
id="newcommentprivacy"
onClick="updateCommentTagControl(this, form)">
<label for="newcommentprivacy">
Make comment private (visible only to members of the
<strong>[% Param('insidergroup') FILTER html %]</strong> group)
</label>
[% END %]
<br>
[% INCLUDE global/textarea.html.tmpl
name = 'comment'
id = 'comment'
minrows = 5
maxrows = 25
cols = constants.COMMENT_COLS
%]<br>
[% Hook.process('before_groups') %]
[% IF groups.size > 0 %]
<script [% script_nonce FILTER none %]>
function turn_off(myself, id) {
var other_checkbox = document.getElementById(id);
if (myself.checked && other_checkbox) {
other_checkbox.checked = false;
}
}
</script>
<b>Groups:</b><br>
<table border="1">
<tr>
<th>Remove<br>[% terms.bugs %]<br>from this<br>group</th>
<th>Add<br>[% terms.bugs %]<br>to this<br>group</th>
<th>Group Name:</th>
</tr>
[% FOREACH group = groups %]
<tr>
<td align="center">
<input type="checkbox" name="defined_groups"
id="defined_group_[% group.id %]"
value="[% group.name FILTER html %]"
onchange="turn_off(this, 'group_[% group.id %]')">
</td>
[% IF group.is_active %]
<td align="center">
<input type="checkbox" name="groups"
id="group_[% group.id FILTER html %]"
value="[% group.name FILTER html %]"
onchange="turn_off(this, 'defined_group_[% group.id %]')">
</td>
[% ELSE %]
<td> </td>
[% foundinactive = 1 %]
[% END %]
<td>
[% SET inactive = !group.is_active %]
[% group.description FILTER html_light FILTER inactive(inactive) %]
</td>
</tr>
[% END %]
</table>
[% IF foundinactive %]
<p style="font-size:smaller">(Note: [% terms.Bugs %] may not be added to [% FILTER inactive %]inactive
groups[% END %], only removed.)</p>
[% END %]
[% END %]
[%+ Hook.process('after_groups') %]
<input type="submit" id="commit" value="Commit">
[%############################################################################%]
[%# Select Menu Block #%]
[%############################################################################%]
[% BLOCK selectmenu %]
<select id="[% menuname %]" name="[% menuname %]">
<option value="[% dontchange FILTER html %]" selected="selected">
[% dontchange FILTER html %]
</option>
[% FOREACH menuitem = menuitems %]
[% IF property %][% menuitem = menuitem.$property %][% END %]
<option value="[% menuitem FILTER html %]">[% display_value(menuname, menuitem) FILTER html %]</option>
[% END %]
</select>
[% END %]
[%############################################################################%]
[%# Status Block #%]
[%############################################################################%]
[% BLOCK status_section %]
[% all_open_bugs = !current_bug_statuses.containsany(closedstates) %]
[% all_closed_bugs = !current_bug_statuses.containsany(openstates) %]
[% closed_status_array = [] %]
<select name="bug_status" id="bug_status">
<option value="[% dontchange FILTER html %]" selected="selected">[% dontchange FILTER html %]</option>
[% FOREACH bug_status = new_bug_statuses %]
<option value="[% bug_status.name FILTER html %]">
[% display_value("bug_status", bug_status.name) FILTER html %]
</option>
[% IF !bug_status.is_open %]
[% filtered_status = bug_status.name FILTER js %]
[% closed_status_array.push( filtered_status ) %]
[% END %]
[% END %]
[%# If all the bugs being changed are closed, allow the user to change their resolution. %]
[% IF all_closed_bugs %]
[% filtered_status = dontchange FILTER js %]
[% closed_status_array.push( filtered_status ) %]
[% END %]
</select>
<span id="resolution_settings">
<select id="resolution" name="resolution">
<option value="[% dontchange FILTER html %]" selected >[% dontchange FILTER html %]</option>
[% FOREACH r = resolutions %]
[% NEXT IF !r %]
[% NEXT IF r == "DUPLICATE" || r == "MOVED" %]
[% NEXT IF r == "EXPIRED" AND user.login != "gerv@mozilla.org" %]
<option value="[% r FILTER html %]">[% display_value("resolution", r) FILTER html %]</option>
[% END %]
</select>
</span>
<script [% script_nonce FILTER none %]>
var close_status_array = new Array("[% closed_status_array.join('", "') FILTER none %]");
YAHOO.util.Event.addListener('bug_status', "change", showHideStatusItems, '[% "is_duplicate" IF bug.dup_id %]');
YAHOO.util.Event.onDOMReady( showHideStatusItems );
</script>
[% END %]
|