summaryrefslogtreecommitdiffstats
path: root/template/en/default/list/edit-multiple.html.tmpl
blob: f7b40a18f4d5fc912d4269e02ff002ea15108945 (plain)
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
<!-- 1.0@bugzilla.org -->
[%# 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>
  #%]

[% PROCESS global/variables.none.tmpl %]

[% dontchange = "--do_not_change--" %]
<input type="hidden" name="dontchange" value="[% dontchange FILTER html %]">

<script type="text/javascript" language="JavaScript">
  var numelements = document.forms.changeform.elements.length;
  function SetCheckboxes(value) {
      var item;
      for (var i=0 ; i<numelements ; i++) {
          item = document.forms.changeform.elements[i];
          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><font size="-1">
  To change multiple [% terms.bugs %]:
  <ol>
    <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>
</font></p>

<table id="form">
  <tr>

    <th><label for="product">Product:</label></th>
    <td>
      [% PROCESS selectmenu menuname = "product"
                            menuitems = products %]
    </td>

    <th><label for="version">Version:</label></th>
    <td>
      [% PROCESS selectmenu menuname = "version"
                            menuitems = versions %]
    </td>

  </tr>
  <tr>

    <th>
      <label for="rep_platform">
        <a href="bug_status.html#rep_platform">Platform</a>:
      </label>
    </th>
    <td>
      [% PROCESS selectmenu menuname = "rep_platform"
                            menuitems = platforms %]
    </td>

    <th>
      <label for="priority">
        <a href="bug_status.html#priority">Priority</a>:
      </label>
    </th>
    <td>
      [% PROCESS selectmenu menuname = "priority"
                            menuitems = priorities %]
    </td>

  </tr>
  <tr>

    <th><label for="component">Component:</label></th>
    <td>
      [% PROCESS selectmenu menuname = "component"
                            menuitems = components %]
    </td>

    <th>
      <label for="bug_severity">
        <a href="bug_status.html#severity">Severity</a>:
      </label>
    </th>
    <td>
      [% PROCESS selectmenu menuname = "bug_severity"
                            menuitems = severities %]
    </td>

  </tr>
  <tr>

    <th><label for="target_milestone">Target Milestone:</label></th>
    <td colspan="3">
      [% PROCESS selectmenu menuname = "target_milestone"
                            menuitems = targetmilestones %]
    </td>

  </tr>

  [% IF UserInGroup(Param("timetrackinggroup")) %]
    <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>
      <th><label for="remaining_time">Remaining Hours:</label></th>
      <td>
        <input id="remaining_time"
               name="remaining_time"
               value="[% dontchange FILTER html %]"
               size="6">
      </td>
    </tr>
  [% END %]

  [% IF Param("useqacontact") %]
    <tr>
      <th><label for="qa_contact">QA Contact:</label></th>
      <td colspan="3">
        <input id="qa_contact"
               name="qa_contact"
               value="[% dontchange FILTER html %]"
               size="32">
      </td>
    </tr>
  [% END %]

  <tr>

    <th><label for="masscc">CC List:</label></th>
    <td colspan="3">
      <input id="masscc" name="masscc" size="32">
      <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>

      <th>
        <label for="keywords">
          <a href="describekeywords.cgi">Keywords</a>:
        </label>
      </th>
      <td colspan="3">
        <input id="keywords" name="keywords" size="32">
        <select name="keywordaction">
          <option value="add">Add these keywords</option>
          <option value="delete">Delete these keywords</option>
          <option value="makeexact">Make the keywords be exactly this list</option>
        </select>
      </td>

    </tr>
  [% END %]

</table>

<input type="hidden" name="multiupdate" value="Y">

<label for="comment"><b>Additional Comments:</b></label><br>
<textarea id="comment" name="comment" rows="5" cols="80" wrap="hard"></textarea><br>

[% IF groups.size > 0 %]

  <b>Groupset:</b><br>
  <table border="1">
    <tr>
      <th>Don't<br>change<br>this group<br>restriction</td>
      <th>Remove<br>[% terms.bugs %]<br>from this<br>group</td>
      <th>Add<br>[% terms.bugs %]<br>to this<br>group</td>
      <th>Group Name:</td>
    </tr>

    [% FOREACH group = groups %]
    <tr>
      <td align="center">
        <input type="radio" name="bit-[% group.id %]" value="-1" checked="checked">
      </td>
      <td align="center">
        <input type="radio" name="bit-[% group.id %]" value="0">
      </td>
      [% IF group.isactive %]
        <td align="center">
          <input type="radio" name="bit-[% group.id %]" value="1">
        </td>
      [% ELSE %]
        <td>&nbsp;</td>
        [% foundinactive = 1 %]
      [% END %]

      <td>
        [% IF group.isactive %]
          [% group.description %]
        [% ELSE %]
          [% group.description FILTER strike %]
        [% END %]
      </td>

    </tr>
    [% END %]

  </table>

  [% IF foundinactive %]
    <font size="-1">(Note: [% terms.Bugs %] may not be added to <strike>inactive
    groups</strike>, only removed.)</font><br>
  [% END %]

[% END %]



[% knum = 0 %]
<input id="knob-none" type="radio" name="knob" value="none" checked="checked">
<label for="knob-none">Do nothing else</label><br>

[% IF bugstatuses.size == 1 && bugstatuses.0 == unconfirmedstate %]
  [% knum = knum + 1 %]
  <input id="knob-confirm" type="radio" name="knob" value="confirm">
  <label for="knob-confirm">
    Confirm [% terms.bugs %] (change status to <b>NEW</b>)
  </label><br>
[% END %]

[% knum = knum + 1 %]
<input id="knob-accept" type="radio" name="knob" value="accept">
<label for="knob-accept">
  Accept [% terms.bugs %] (change status to <b>ASSIGNED</b>)
</label><br>

[%# If all the bugs being changed are open, allow the user to close them. %]
[% IF !bugstatuses.containsany(closedstates) %]
  [% knum = knum + 1 %]
  <input id="knob-clearresolution" type="radio" name="knob" value="clearresolution">
  <label for="knob-clearresolution">Clear the resolution</label><br>

  [% knum = knum + 1 %]
  <input id="knob-resolve" type="radio" name="knob" value="resolve">
  <label for="knob-resolve">
    Resolve [% terms.bugs %], changing <a href="bug_status.html">resolution</a> to
  </label>
  <select name="resolution" onchange="document.forms.changeform.knob[[% knum %]].checked=true">
    [% FOREACH resolution = resolutions %]
      [% NEXT IF !resolution %]
      <option value="[% resolution FILTER html %]" [% 'selected="selected"' IF resolution == "FIXED" %]>
        [% resolution FILTER html %]
      </option>
    [% END %]
  </select><br>

[% END %]

[%# If all the bugs are closed, allow the user to reopen them. %]
[% IF !bugstatuses.containsany(openstates) %]
  [% knum = knum + 1 %]
  <input id="knob-reopen" type="radio" name="knob" value="reopen">
  <label for="knob-reopen">Reopen [% terms.bugs %]</label><br>
[% END %]

[% IF bugstatuses.size == 1 %]
  [% IF bugstatuses.contains('RESOLVED') %]
    [% knum = knum + 1 %]
    <input id="knob-verify" type="radio" name="knob" value="verify">
    <label for="knob-verify">Mark [% terms.bugs %] as <b>VERIFIED</b></label><br>
  [% ELSIF bugstatuses.contains('VERIFIED') %]
    [% knum = knum + 1 %]
    <input id="knob-close" type="radio" name="knob" value="close">
    <label for="knob-close">Mark [% terms.bugs %] as <b>CLOSED</b></label><br>
  [% END %]
[% END %]

[% knum = knum + 1 %]
<input id="knob-reassign" type="radio" name="knob" value="reassign">
<label for="knob-reassign"><a href="bug_status.html#assigned_to">
  Reassign</a> [% terms.bugs %] to
</label>
<input name="assigned_to"
       value="[% user.login FILTER html %]"
       onchange="document.forms.changeform.knob[[% knum %]].checked = true;"
       size="32"><br>

[% knum = knum + 1 %]
<input id="knob-reassignbycomponent"
       type="radio"
       name="knob"
       value="reassignbycomponent">
<label for="knob-reassignbycomponent">
  Reassign [% terms.bugs %] to owner of selected component
</label><br>

<input type="submit" value="Commit">

[% IF ismover %]
  <input type="submit" name="action" value="[% Param('move-button-text') %]">
[% END %]


[%############################################################################%]
[%# Select Menu Block                                                        #%]
[%############################################################################%]

[% BLOCK selectmenu %]
  <select id="[% menuname %]" name="[% menuname %]">
    <option value="[% dontchange FILTER html %]" selected="selected">
      [% dontchange FILTER html %]
    </option>
    [% FOREACH menuitem = menuitems %]
      <option value="[% menuitem FILTER html %]">[% menuitem FILTER html %]</option>
    [% END %]
  </select>
[% END %]