summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/knob.html.tmpl
blob: c76251ae97918cb6da74fb2c22624928fc1fd577 (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
[%# 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): Gervase Markham <gerv@gerv.net>
  #                 Vaskin Kissoyan <vkissoyan@yahoo.com>
  #%]

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

[%# *** Knob *** %]

  <br>
  <input type="radio" id="knob-leave" name="knob" value="none" checked="checked">
  <label for="knob-leave">
    Leave as <b>[% status_descs.${bug.bug_status} FILTER html %]&nbsp;
                [% resolution_descs.${bug.resolution} FILTER html %]</b>
  </label>
  <br>

  [% knum = 1 %]

  [% IF bug.isunconfirmed && bug.user.canconfirm %]
    <input type="radio" id="knob-confirm" name="knob" value="confirm">
    <label for="knob-confirm">
      Confirm [% terms.bug %] (change status to <b>[% status_descs.NEW FILTER html %]</b>)
    </label>
    <br>
    [% knum = knum + 1 %]
  [% END %]

  [% IF bug.isopened && bug.bug_status != "ASSIGNED" && bug.user.canedit
        && (!bug.isunconfirmed || bug.user.canconfirm) %]
    <input type="radio" id="knob-accept" name="knob" value="accept">
    <label for="knob-accept">
      Accept [% terms.bug %] (
      [% IF bug.isunconfirmed %]confirm [% terms.bug %], and [% END %]change
      status to <b>[% status_descs.ASSIGNED FILTER html %]</b>)
    </label>
    <br>
    [% knum = knum + 1 %]
  [% END %]

  [% IF bug.user.canedit || bug.user.isreporter %]
    [% IF bug.isopened %]
      [% IF bug.resolution %]
        <input type="radio" id="knob-clear" name="knob" value="clearresolution">
        <label for="knob-clear">
          Clear the resolution (remove the current resolution of
          <b>[% status_descs.${bug.resolution} FILTER html %]</b>)
        </label>
        <br>
        [% knum = knum + 1 %]
      [% END %]

      <input type="radio" id="knob-resolve" name="knob" value="resolve">
      <label for="knob-resolve">
        Resolve [% terms.bug %], changing 
        <a href="page.cgi?id=fields.html#resolution">resolution</a> to
      </label>  
      <select name="resolution"
              onchange="document.changeform.knob[[% knum %]].checked=true">
        [% FOREACH r = bug.choices.resolution %]
          <option value="[% r FILTER html %]">[% resolution_descs.${r} FILTER html %]</option>
        [% END %]
      </select>
      <br>
      [% knum = knum + 1 %]

      <input type="radio" id="knob-duplicate" name="knob" value="duplicate">
      <label for="knob-duplicate">
        Resolve [% terms.bug %], mark it as duplicate of [% terms.bug %] #
      </label>
      <input name="dup_id" size="6"
             onchange="if (this.value != '')
                       {document.changeform.knob[[% knum %]].checked=true}">
      <br>
      [% knum = knum + 1 %]

      [% IF bug.user.canedit %]
        <input type="radio" id="knob-reassign" name="knob" value="reassign">
        <label for="knob-reassign">
          <a href="page.cgi?id=fields.html#assigned_to">Reassign</a> 
          [% terms.bug %] to
        </label>
        [% safe_assigned_to = FILTER js; bug.assigned_to.login; END %]
        [% INCLUDE global/userselect.html.tmpl
             name => "assigned_to"
             value => bug.assigned_to.login
             size => 32
             onchange => "if ((this.value != '$safe_assigned_to') && (this.value != '')) {
                               document.changeform.knob[$knum].checked=true;
                          }"
        %]
        <br>
        [% IF bug.isunconfirmed && bug.user.canconfirm %]
          &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="andconfirm" name="andconfirm">
          <label for="andconfirm">
            and confirm [% terms.bug %] (change status to <b>[% status_descs.NEW FILTER html %]</b>)
          </label>
          <br>
        [% END %]
        [% knum = knum + 1 %]

        <input type="radio" id="knob-reassign-cmp" name="knob" value="reassignbycomponent">
        <label for="knob-reassign-cmp">
          Reassign [% terms.bug %] to default assignee
          [% " and QA contact" IF Param('useqacontact') %]
          of selected component
        </label>
        <br>
        [% IF bug.isunconfirmed && bug.user.canconfirm %]
          &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="compconfirm" name="compconfirm">
          <label for="compconfirm">
            and confirm [% terms.bug %] (change status to <b>[% status_descs.NEW FILTER html %]</b>)
          </label>
          <br>
        [% END %]
        [% knum = knum + 1 %]
      [% END %]
    [% ELSE %]
      [% IF bug.resolution != "MOVED" ||
           (bug.resolution == "MOVED" && bug.user.canmove) %]
        <input type="radio" id="knob-reopen" name="knob" value="reopen">
        <label for="knob-reopen">
          Reopen [% terms.bug %]
        </label>
        <br>
        [% knum = knum + 1 %]
      [% END %]
      [% IF bug.bug_status == "RESOLVED" %]
        <input type="radio" id="knob-verify" name="knob" value="verify">
        <label for="knob-verify">
          Mark [% terms.bug %] as <b>[% status_descs.VERIFIED FILTER html %]</b>
        </label>
        <br>
        [% knum = knum + 1 %]
      [% END %]
      [% IF bug.bug_status != "CLOSED" %]
        <input type="radio" id="knob-close" name="knob" value="close">
        <label for="knob-close">
          Mark [% terms.bug %] as <b>[% status_descs.CLOSED FILTER html %]</b>
        </label>
        <br>
        [% knum = knum + 1 %]
      [% END %]
    [% END %]
  [% END %]

  <input type="submit" value="Commit">
  <input type="hidden" name="form_name" value="process_bug">
  <p>
    <font size="+1">
      <b>
        <a href="show_activity.cgi?id=[% bug.bug_id %]">View [% terms.Bug %] Activity</a>
        &nbsp; | &nbsp;
        <a href="show_bug.cgi?format=multiple&amp;id=[% bug.bug_id %]">Format For Printing</a>
        &nbsp; | &nbsp;
        <a href="show_bug.cgi?ctype=xml&amp;id=[% bug.bug_id %]">XML</a>
        &nbsp; | &nbsp;
        <a href="enter_bug.cgi?cloned_bug_id=[% bug.bug_id %]">Clone This [% terms.Bug %]</a>

        [%# Links to more things users can do with this bug. %]
        [% Hook.process("links") %]
      </b>
    </font>

    [% IF bug.user.canmove %]
      &nbsp; <font size="+1"><b> | </b></font> &nbsp;
      <input type="submit" name="action"
             value="[% Param("move-button-text") %]">
    [% END %]
  </p>