~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to template/en/default/list/edit-multiple.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
[%# 1.0@bugzilla.org %]
2
 
[%# The contents of this file are subject to the Mozilla Public
3
 
  # License Version 1.1 (the "License"); you may not use this file
4
 
  # except in compliance with the License. You may obtain a copy of
5
 
  # the License at http://www.mozilla.org/MPL/
6
 
  #
7
 
  # Software distributed under the License is distributed on an "AS
8
 
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
 
  # implied. See the License for the specific language governing
10
 
  # rights and limitations under the License.
11
 
  #
12
 
  # The Original Code is the Bugzilla Bug Tracking System.
13
 
  #
14
 
  # The Initial Developer of the Original Code is Netscape Communications
15
 
  # Corporation. Portions created by Netscape are
16
 
  # Copyright (C) 1998 Netscape Communications Corporation. All
17
 
  # Rights Reserved.
18
 
  #
19
 
  # Contributor(s): Myk Melez <myk@mozilla.org>
20
 
  #                 Max Kanat-Alexander <mkanat@bugzilla.org>
21
 
  #%]
22
 
 
23
 
[% PROCESS global/variables.none.tmpl %]
24
 
 
25
 
[% dontchange = "--do_not_change--" %]
26
 
<input type="hidden" name="dontchange" value="[% dontchange FILTER html %]">
27
 
 
28
 
<script type="text/javascript">
29
 
  var numelements = document.forms.changeform.elements.length;
30
 
  function SetCheckboxes(value) {
31
 
      var item;
32
 
      for (var i=0 ; i<numelements ; i++) {
33
 
          item = document.forms.changeform.elements[i];
34
 
          item.checked = value;
35
 
      }
36
 
  }
37
 
  document.write(' <input type="button" name="uncheck_all" value="Uncheck All" onclick="SetCheckboxes(false);">');
38
 
  document.write(' <input type="button" name="check_all" value="Check All" onclick="SetCheckboxes(true);">');
39
 
</script>
40
 
 
41
 
<hr>
42
 
 
43
 
<p style="font-size:smaller">
44
 
 To change multiple [% terms.bugs %]:</p>
45
 
<ol style="font-size:smaller">
46
 
  <li>Check the [% terms.bugs %] you want to change above.</li>
47
 
  <li>Make your changes in the form fields below.  If the change
48
 
   you are making requires an explanation, include it in
49
 
   the comments box.</li>
50
 
  <li>Click the <em>Commit</em> button.</li>
51
 
</ol>
52
 
 
53
 
<table id="form">
54
 
  <tr>
55
 
 
56
 
    <th><label for="product">Product:</label></th>
57
 
    <td>
58
 
      [% PROCESS selectmenu menuname = "product"
59
 
                            menuitems = products
60
 
                            property = "name" %]
61
 
    </td>
62
 
 
63
 
    <th><label for="version">Version:</label></th>
64
 
    <td>
65
 
      [% PROCESS selectmenu menuname = "version"
66
 
                            menuitems = versions
67
 
                            property = "" %]
68
 
    </td>
69
 
 
70
 
  </tr>
71
 
  <tr>
72
 
 
73
 
    <th><label for="component">Component:</label></th>
74
 
    <td>
75
 
      [% PROCESS selectmenu menuname = "component"
76
 
                            menuitems = components %]
77
 
    </td>
78
 
 
79
 
    <th>
80
 
      <label for="priority">
81
 
        <a href="page.cgi?id=fields.html#priority">Priority</a>:
82
 
      </label>
83
 
    </th>
84
 
    <td>
85
 
      [% PROCESS selectmenu menuname = "priority"
86
 
                            menuitems = priorities %]
87
 
    </td>
88
 
 
89
 
  </tr>
90
 
  <tr>
91
 
 
92
 
    <th>
93
 
      <label for="rep_platform">
94
 
        <a href="page.cgi?id=fields.html#rep_platform">Platform</a>:
95
 
      </label>
96
 
    </th>
97
 
    <td>
98
 
      [% PROCESS selectmenu menuname = "rep_platform"
99
 
                            menuitems = platforms %]
100
 
    </td>
101
 
 
102
 
    <th>
103
 
      <label for="bug_severity">
104
 
        <a href="page.cgi?id=fields.html#bug_severity">Severity</a>:
105
 
      </label>
106
 
    </th>
107
 
    <td>
108
 
      [% PROCESS selectmenu menuname = "bug_severity"
109
 
                            menuitems = severities %]
110
 
    </td>
111
 
 
112
 
  </tr>
113
 
 
114
 
  <tr>
115
 
    <th>
116
 
      <label for="op_sys">
117
 
        <a href="page.cgi?id=fields.html#op_sys">OS</a>:
118
 
      </label>
119
 
    </th>
120
 
    <td [% " colspan=\"3\"" IF !Param("usetargetmilestone") %]>
121
 
      [% PROCESS selectmenu menuname = "op_sys"
122
 
                            menuitems = op_sys %]
123
 
    </td>
124
 
 
125
 
    [% IF Param("usetargetmilestone") %]
126
 
      <th><label for="target_milestone">Target Milestone:</label></th>
127
 
      <td>
128
 
        [% PROCESS selectmenu menuname = "target_milestone"
129
 
                              menuitems = targetmilestones %]
130
 
      </td>
131
 
    [% END %]
132
 
  </tr>
133
 
 
134
 
  [% IF user.in_group(Param("timetrackinggroup")) %]
135
 
    <tr>
136
 
      <th><label for="estimated_time">Estimated Hours:</label></th>
137
 
      <td>
138
 
        <input id="estimated_time"
139
 
               name="estimated_time"
140
 
               value="[% dontchange FILTER html %]"
141
 
               size="6">
142
 
      </td>
143
 
      <th><label for="remaining_time">Remaining Hours:</label></th>
144
 
      <td>
145
 
        <input id="remaining_time"
146
 
               name="remaining_time"
147
 
               value="[% dontchange FILTER html %]"
148
 
               size="6">
149
 
      </td>
150
 
    </tr>
151
 
  [% END %]
152
 
 
153
 
  [% IF Param("useqacontact") %]
154
 
    <tr>
155
 
      <th><label for="qa_contact">QA Contact:</label></th>
156
 
      <td colspan="3">
157
 
        <input id="qa_contact"
158
 
               name="qa_contact"
159
 
               value="[% dontchange FILTER html %]"
160
 
               size="32">
161
 
      </td>
162
 
    </tr>
163
 
  [% END %]
164
 
 
165
 
  <tr>
166
 
 
167
 
    <th><label for="masscc">CC List:</label></th>
168
 
    <td colspan="3">
169
 
      <input id="masscc" name="masscc" size="32">
170
 
      <select name="ccaction">
171
 
        <option value="add">Add these to the CC List</option>
172
 
        <option value="remove">Remove these from the CC List</option>
173
 
      </select>
174
 
    </td>
175
 
 
176
 
  </tr>
177
 
 
178
 
  [% IF use_keywords %]
179
 
    <tr>
180
 
 
181
 
      <th>
182
 
        <label for="keywords">
183
 
          <a href="describekeywords.cgi">Keywords</a>:
184
 
        </label>
185
 
      </th>
186
 
      <td colspan="3">
187
 
        <input id="keywords" name="keywords" size="32">
188
 
        <select name="keywordaction">
189
 
          <option value="add">Add these keywords</option>
190
 
          <option value="delete">Delete these keywords</option>
191
 
          <option value="makeexact">Make the keywords be exactly this list</option>
192
 
        </select>
193
 
      </td>
194
 
 
195
 
    </tr>
196
 
  [% END %]
197
 
 
198
 
  [% IF Param('usestatuswhiteboard') %]
199
 
    <tr>
200
 
      <td align="right">
201
 
        <b>Status Whiteboard:</b>
202
 
      </td>
203
 
      <td colspan="7">
204
 
        <input name="status_whiteboard" 
205
 
               value="[% dontchange FILTER html %]" size="60">
206
 
      </td>
207
 
    </tr>
208
 
  [% END %]
209
 
 
210
 
  [% USE Bugzilla %]
211
 
  [% FOREACH field = Bugzilla.get_fields({ obsolete => 0, custom => 1 }) %]
212
 
    <tr>
213
 
      [% PROCESS bug/field.html.tmpl value = dontchange
214
 
                                     editable = 1
215
 
                                     allow_dont_change = 1 %]
216
 
    </tr>
217
 
  [% END %]
218
 
 
219
 
</table>
220
 
 
221
 
<b><label for="comment">Additional Comments:</label></b><br>
222
 
[% INCLUDE global/textarea.html.tmpl
223
 
  name    = 'comment'
224
 
  id      = 'comment'
225
 
  minrows = 5
226
 
  maxrows = 25
227
 
  cols    = constants.COMMENT_COLS
228
 
%]<br>
229
 
 
230
 
[% IF groups.size > 0 %]
231
 
 
232
 
  <b>Groupset:</b><br>
233
 
  <table border="1">
234
 
    <tr>
235
 
      <th>Don't<br>change<br>this group<br>restriction</th>
236
 
      <th>Remove<br>[% terms.bugs %]<br>from this<br>group</th>
237
 
      <th>Add<br>[% terms.bugs %]<br>to this<br>group</th>
238
 
      <th>Group Name:</th>
239
 
    </tr>
240
 
 
241
 
    [% FOREACH group = groups %]
242
 
    <tr>
243
 
      <td align="center">
244
 
        <input type="radio" name="bit-[% group.id %]" value="-1" checked="checked">
245
 
      </td>
246
 
      <td align="center">
247
 
        <input type="radio" name="bit-[% group.id %]" value="0">
248
 
      </td>
249
 
      [% IF group.isactive %]
250
 
        <td align="center">
251
 
          <input type="radio" name="bit-[% group.id %]" value="1">
252
 
        </td>
253
 
      [% ELSE %]
254
 
        <td>&nbsp;</td>
255
 
        [% foundinactive = 1 %]
256
 
      [% END %]
257
 
 
258
 
      <td>
259
 
        [% SET inactive = !group.isactive %]
260
 
        [% group.description FILTER html_light FILTER inactive(inactive) %]
261
 
      </td>
262
 
 
263
 
    </tr>
264
 
    [% END %]
265
 
 
266
 
  </table>
267
 
 
268
 
  [% IF foundinactive %]
269
 
    <p style="font-size:smaller">(Note: [% terms.Bugs %] may not be added to [% FILTER inactive %]inactive
270
 
    groups[% END %], only removed.)</p>
271
 
  [% END %]
272
 
 
273
 
[% END %]
274
 
 
275
 
 
276
 
 
277
 
[% knum = 0 %]
278
 
<input id="knob-none" type="radio" name="knob" value="none" checked="checked">
279
 
<label for="knob-none">Do nothing else</label><br>
280
 
 
281
 
[% IF bugstatuses.size == 1 && bugstatuses.0 == unconfirmedstate %]
282
 
  [% knum = knum + 1 %]
283
 
  <input id="knob-confirm" type="radio" name="knob" value="confirm">
284
 
  <label for="knob-confirm">
285
 
    Confirm [% terms.bugs %] (change status to <b>[% status_descs.NEW FILTER html %]</b>)
286
 
  </label><br>
287
 
[% END %]
288
 
 
289
 
[%# If all the bugs being changed are open, allow the user to accept them,
290
 
    clear their resolution or resolve them. %]
291
 
[% IF !bugstatuses.containsany(closedstates) %]
292
 
  [% knum = knum + 1 %]
293
 
  <input id="knob-accept" type="radio" name="knob" value="accept">
294
 
  <label for="knob-accept">
295
 
    Accept [% terms.bugs %] (change status to <b>[% status_descs.ASSIGNED FILTER html %]</b>)
296
 
  </label><br>
297
 
 
298
 
  [% knum = knum + 1 %]
299
 
  <input id="knob-clearresolution" type="radio" name="knob" value="clearresolution">
300
 
  <label for="knob-clearresolution">Clear the resolution</label><br>
301
 
 
302
 
  [% knum = knum + 1 %]
303
 
  <input id="knob-resolve" type="radio" name="knob" value="resolve">
304
 
  <label for="knob-resolve">
305
 
    Resolve [% terms.bugs %], changing <a href="page.cgi?id=fields.html#resolution">resolution</a> to
306
 
  </label>
307
 
  <select name="resolution" onchange="document.forms.changeform.knob[[% knum %]].checked=true">
308
 
    [% FOREACH resolution = resolutions %]
309
 
      [% NEXT IF !resolution %]
310
 
      <option value="[% resolution FILTER html %]">
311
 
        [% get_resolution(resolution) FILTER html %]
312
 
      </option>
313
 
    [% END %]
314
 
  </select><br>
315
 
 
316
 
[% END %]
317
 
 
318
 
[%# If all the bugs are closed, allow the user to reopen them. %]
319
 
[% IF !bugstatuses.containsany(openstates) %]
320
 
  [% knum = knum + 1 %]
321
 
  <input id="knob-reopen" type="radio" name="knob" value="reopen">
322
 
  <label for="knob-reopen">Reopen [% terms.bugs %]</label><br>
323
 
[% END %]
324
 
 
325
 
[% IF bugstatuses.size == 1 %]
326
 
  [% IF bugstatuses.contains('RESOLVED') %]
327
 
    [% knum = knum + 1 %]
328
 
    <input id="knob-verify" type="radio" name="knob" value="verify">
329
 
    <label for="knob-verify">Mark [% terms.bugs %] as <b>[% status_descs.VERIFIED FILTER html %]</b></label><br>
330
 
  [% END %]
331
 
[% END %]
332
 
 
333
 
[% IF !bugstatuses.containsany(openstates) AND !bugstatuses.contains('CLOSED') %]
334
 
  [% knum = knum + 1 %]
335
 
  <input id="knob-close" type="radio" name="knob" value="close">
336
 
  <label for="knob-close">Mark [% terms.bugs %] as <b>[% status_descs.CLOSED FILTER html %]</b></label><br>
337
 
[% END %]
338
 
 
339
 
[% knum = knum + 1 %]
340
 
<input id="knob-reassign" type="radio" name="knob" value="reassign">
341
 
<label for="knob-reassign"><a href="page.cgi?id=fields.html#assigned_to">
342
 
  Reassign</a> [% terms.bugs %] to
343
 
</label>
344
 
[% INCLUDE global/userselect.html.tmpl
345
 
   name => "assigned_to"
346
 
   value => user.login
347
 
   size => 32
348
 
   onchange => "document.forms.changeform.knob[$knum].checked=true;"
349
 
%]<br>
350
 
 
351
 
[% knum = knum + 1 %]
352
 
<input id="knob-reassignbycomponent"
353
 
       type="radio"
354
 
       name="knob"
355
 
       value="reassignbycomponent">
356
 
<label for="knob-reassignbycomponent">
357
 
  Reassign [% terms.bugs %] to default assignee of selected component
358
 
</label><br>
359
 
 
360
 
<input type="submit" id="commit" value="Commit">
361
 
 
362
 
[% IF Param('move-enabled') && user.is_mover %]
363
 
  <input type="submit" name="action" id="action" value="[% Param('move-button-text') %]">
364
 
[% END %]
365
 
 
366
 
[%############################################################################%]
367
 
[%# Select Menu Block                                                        #%]
368
 
[%############################################################################%]
369
 
 
370
 
[% BLOCK selectmenu %]
371
 
  <select id="[% menuname %]" name="[% menuname %]">
372
 
    <option value="[% dontchange FILTER html %]" selected="selected">
373
 
      [% dontchange FILTER html %]
374
 
    </option>
375
 
    [% FOREACH menuitem = menuitems %]
376
 
      [% IF property %][% menuitem = menuitem.$property %][% END %]
377
 
      <option value="[% menuitem FILTER html %]">[% menuitem FILTER html %]</option>
378
 
    [% END %]
379
 
  </select>
380
 
[% END %]