Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
1b2d1898
Commit
1b2d1898
authored
Oct 17, 2006
by
olav%bkor.dhs.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 314789: 'Leave as {CURRENT STATE}' should not appear unless there is another radio button
Patch By Olav Vitters <olav@bkor.dhs.org> r=timeless a=myk
parent
155b6f82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
knob.html.tmpl
template/en/default/bug/knob.html.tmpl
+21
-7
No files found.
template/en/default/bug/knob.html.tmpl
View file @
1b2d1898
...
@@ -25,16 +25,12 @@
...
@@ -25,16 +25,12 @@
[%# *** Knob *** %]
[%# *** Knob *** %]
<br>
<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 %]
[% get_resolution(bug.resolution) FILTER html %]</b>
</label>
<br>
[% knum = 1 %]
[% knum = 1 %]
[% initial_action_shown = 0 %]
[% IF bug.isunconfirmed && bug.user.canconfirm %]
[% IF bug.isunconfirmed && bug.user.canconfirm %]
[% PROCESS initial_action %]
<input type="radio" id="knob-confirm" name="knob" value="confirm">
<input type="radio" id="knob-confirm" name="knob" value="confirm">
<label for="knob-confirm">
<label for="knob-confirm">
Confirm [% terms.bug %] (change status to <b>[% status_descs.NEW FILTER html %]</b>)
Confirm [% terms.bug %] (change status to <b>[% status_descs.NEW FILTER html %]</b>)
...
@@ -45,6 +41,7 @@
...
@@ -45,6 +41,7 @@
[% IF bug.isopened && bug.bug_status != "ASSIGNED" && bug.user.canedit
[% IF bug.isopened && bug.bug_status != "ASSIGNED" && bug.user.canedit
&& (!bug.isunconfirmed || bug.user.canconfirm) %]
&& (!bug.isunconfirmed || bug.user.canconfirm) %]
[% PROCESS initial_action %]
<input type="radio" id="knob-accept" name="knob" value="accept">
<input type="radio" id="knob-accept" name="knob" value="accept">
<label for="knob-accept">
<label for="knob-accept">
Accept [% terms.bug %] (
Accept [% terms.bug %] (
...
@@ -58,6 +55,7 @@
...
@@ -58,6 +55,7 @@
[% IF bug.user.canedit || bug.user.isreporter %]
[% IF bug.user.canedit || bug.user.isreporter %]
[% IF bug.isopened %]
[% IF bug.isopened %]
[% IF bug.resolution %]
[% IF bug.resolution %]
[% PROCESS initial_action %]
<input type="radio" id="knob-clear" name="knob" value="clearresolution">
<input type="radio" id="knob-clear" name="knob" value="clearresolution">
<label for="knob-clear">
<label for="knob-clear">
Clear the resolution (remove the current resolution of
Clear the resolution (remove the current resolution of
...
@@ -67,6 +65,7 @@
...
@@ -67,6 +65,7 @@
[% knum = knum + 1 %]
[% knum = knum + 1 %]
[% END %]
[% END %]
[% PROCESS initial_action %]
<input type="radio" id="knob-resolve" name="knob" value="resolve">
<input type="radio" id="knob-resolve" name="knob" value="resolve">
<label for="knob-resolve">
<label for="knob-resolve">
Resolve [% terms.bug %], changing
Resolve [% terms.bug %], changing
...
@@ -120,6 +119,7 @@
...
@@ -120,6 +119,7 @@
[% ELSE %]
[% ELSE %]
[% IF bug.resolution != "MOVED" ||
[% IF bug.resolution != "MOVED" ||
(bug.resolution == "MOVED" && bug.user.canmove) %]
(bug.resolution == "MOVED" && bug.user.canmove) %]
[% PROCESS initial_action %]
<input type="radio" id="knob-change-resolution" name="knob" value="change_resolution">
<input type="radio" id="knob-change-resolution" name="knob" value="change_resolution">
<label for="knob-change-resolution">
<label for="knob-change-resolution">
Change <a href="page.cgi?id=fields.html#resolution">resolution</a> to
Change <a href="page.cgi?id=fields.html#resolution">resolution</a> to
...
@@ -136,6 +136,7 @@
...
@@ -136,6 +136,7 @@
[% knum = knum + 1 %]
[% knum = knum + 1 %]
[% END %]
[% END %]
[% IF bug.bug_status == "RESOLVED" %]
[% IF bug.bug_status == "RESOLVED" %]
[% PROCESS initial_action %]
<input type="radio" id="knob-verify" name="knob" value="verify">
<input type="radio" id="knob-verify" name="knob" value="verify">
<label for="knob-verify">
<label for="knob-verify">
Mark [% terms.bug %] as <b>[% status_descs.VERIFIED FILTER html %]</b>
Mark [% terms.bug %] as <b>[% status_descs.VERIFIED FILTER html %]</b>
...
@@ -144,6 +145,7 @@
...
@@ -144,6 +145,7 @@
[% knum = knum + 1 %]
[% knum = knum + 1 %]
[% END %]
[% END %]
[% IF bug.bug_status != "CLOSED" %]
[% IF bug.bug_status != "CLOSED" %]
[% PROCESS initial_action %]
<input type="radio" id="knob-close" name="knob" value="close">
<input type="radio" id="knob-close" name="knob" value="close">
<label for="knob-close">
<label for="knob-close">
Mark [% terms.bug %] as <b>[% status_descs.CLOSED FILTER html %]</b>
Mark [% terms.bug %] as <b>[% status_descs.CLOSED FILTER html %]</b>
...
@@ -178,9 +180,21 @@
...
@@ -178,9 +180,21 @@
[% END %]
[% END %]
</p>
</p>
[%# Common actions %]
[%# 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>[% status_descs.${bug.bug_status} FILTER html %]
[% get_resolution(bug.resolution) FILTER html %]</b>
</label>
<br>
[% initial_action_shown = 1 %]
[% END %]
[% END %]
[% BLOCK select_resolution %]
[% BLOCK select_resolution %]
<select name="resolution"
<select name="resolution"
onchange="document.changeform.knob[[% knum %]].checked=true">
onchange="document.changeform.knob[[% knum %]].checked=true">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment