122 lines
4.7 KiB
Cheetah
122 lines
4.7 KiB
Cheetah
[%# 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>
|
|
# Frédéric Buclin <LpSolit@gmail.com>
|
|
#%]
|
|
|
|
[% PROCESS global/variables.none.tmpl %]
|
|
|
|
<br>
|
|
<div id="knob">
|
|
<div id="knob-options">
|
|
[% initial_action_shown = 0 %]
|
|
|
|
[%# These actions are based on the current custom workflow. %]
|
|
[% FOREACH bug_status = bug.status.can_change_to %]
|
|
[% NEXT IF bug.isunconfirmed && bug_status.is_open && !bug.user.canconfirm %]
|
|
[% NEXT IF bug.isopened && !bug.isunconfirmed && bug_status.is_open && !bug.user.canedit %]
|
|
[% NEXT IF !bug_status.is_open && !bug.user.canedit && !bug.user.isreporter %]
|
|
[% NEXT IF !bug_status.is_open && bug_status.is_open && !bug.user.canedit && !bug.user.isreporter %]
|
|
[%# Special hack to only display UNCO or REOP when reopening, but not both;
|
|
# for compatibility with older versions. %]
|
|
[% NEXT IF !bug.isopened && (bug.everconfirmed && bug_status.name == "UNCONFIRMED"
|
|
|| !bug.everconfirmed && bug_status.name == "REOPENED") %]
|
|
[% PROCESS initial_action %]
|
|
<input type="radio" id="knob_[% bug_status.id FILTER html %]" name="knob"
|
|
value="[% bug_status.name FILTER html %]">
|
|
<label for="knob_[% bug_status.id FILTER html %]">
|
|
Change status to <b>[% get_status(bug_status.name) FILTER html %]</b>
|
|
</label>
|
|
[% IF bug.isopened && !bug_status.is_open %]
|
|
and set the resolution to [% PROCESS select_resolution field = "knob_${bug_status.id}" %]
|
|
[% END %]
|
|
<br>
|
|
[% END %]
|
|
|
|
[%# These actions are special and are independent of the workflow. %]
|
|
[% IF bug.user.canedit || bug.user.isreporter %]
|
|
[% IF bug.isopened %]
|
|
[% IF bug.resolution %]
|
|
[% PROCESS initial_action %]
|
|
<input type="radio" id="knob-clear" name="knob" value="clearresolution">
|
|
<label for="knob-clear">
|
|
Clear the resolution (remove the current resolution of
|
|
<b>[% get_resolution(bug.resolution) FILTER html %]</b>)
|
|
</label>
|
|
<br>
|
|
[% END %]
|
|
[% ELSE %]
|
|
[% IF bug.resolution != "MOVED" || bug.user.canmove %]
|
|
[% PROCESS initial_action %]
|
|
<input type="radio" id="knob_change_resolution" name="knob" value="change_resolution">
|
|
<label for="knob_change_resolution">
|
|
Change <a href="page.cgi?id=fields.html#resolution">resolution</a> to
|
|
</label>
|
|
[% PROCESS select_resolution field = "knob_change_resolution" %]
|
|
<br>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% PROCESS duplicate %]
|
|
[% END %]
|
|
</div>
|
|
|
|
<div id="knob-buttons">
|
|
<input type="submit" value="Commit" id="commit">
|
|
[% IF bug.user.canmove %]
|
|
<input type="submit" name="action" id="action" value="[% Param("move-button-text") %]">
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
|
|
[%# Common actions %]
|
|
|
|
[% BLOCK initial_action %]
|
|
[%# Only show 'Leave as' action in combination with another knob %]
|
|
[% IF !initial_action_shown %]
|
|
<input type="radio" id="knob-leave" name="knob" value="none" checked="checked">
|
|
<label for="knob-leave">
|
|
Leave as <b>[% get_status(bug.bug_status) FILTER html %]
|
|
[% get_resolution(bug.resolution) FILTER html %]</b>
|
|
</label>
|
|
<br>
|
|
[% initial_action_shown = 1 %]
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK select_resolution %]
|
|
<select name="resolution_[% field FILTER html %]"
|
|
onchange="document.forms['changeform'].[% field FILTER html %].checked=true">
|
|
[% FOREACH r = bug.choices.resolution %]
|
|
<option value="[% r FILTER html %]">[% get_resolution(r) FILTER html %]</option>
|
|
[% END %]
|
|
</select>
|
|
[% END %]
|
|
|
|
[% BLOCK duplicate %]
|
|
<input type="radio" id="knob_duplicate" name="knob" value="duplicate">
|
|
<label for="knob_duplicate">
|
|
Mark the [% terms.bug %] as duplicate of [% terms.bug %] #
|
|
</label>
|
|
<input name="dup_id" size="6"
|
|
onchange="if (this.value != '') {document.forms['changeform'].knob_duplicate.checked=true}">
|
|
<br>
|
|
[% END %]
|