diff options
author | lpsolit%gmail.com <> | 2007-05-27 03:27:45 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-05-27 03:27:45 +0000 |
commit | 2bd57ce8e6f2c2bb59a99d825fc9d181ea2cb4a5 (patch) | |
tree | 6bd15d0b6062217eaf3e7f82eaff89f75715f702 /template/en/default/list/edit-multiple.html.tmpl | |
parent | 9e81bb0333048f6066610f66614a1ef163917137 (diff) | |
download | bugs-2bd57ce8e6f2c2bb59a99d825fc9d181ea2cb4a5.tar bugs-2bd57ce8e6f2c2bb59a99d825fc9d181ea2cb4a5.tar.gz bugs-2bd57ce8e6f2c2bb59a99d825fc9d181ea2cb4a5.tar.bz2 bugs-2bd57ce8e6f2c2bb59a99d825fc9d181ea2cb4a5.tar.xz bugs-2bd57ce8e6f2c2bb59a99d825fc9d181ea2cb4a5.zip |
Bug 344965: Fix process_bug.cgi and bug/* templates to work with custom bug status workflow - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'template/en/default/list/edit-multiple.html.tmpl')
-rw-r--r-- | template/en/default/list/edit-multiple.html.tmpl | 76 |
1 files changed, 23 insertions, 53 deletions
diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 668445995..28e513e7b 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -18,6 +18,7 @@ # # Contributor(s): Myk Melez <myk@mozilla.org> # Max Kanat-Alexander <mkanat@bugzilla.org> + # Frédéric Buclin <LpSolit@gmail.com> #%] [% PROCESS global/variables.none.tmpl %] @@ -301,66 +302,25 @@ -[% 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>[% get_status("NEW") FILTER html %]</b>) - </label><br> +[% FOREACH bug_status = new_bug_statuses %] + <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_status.is_open %] + and set the resolution to [% PROCESS select_resolution field = "knob_${bug_status.id}" %] + [% END %] + <br> [% END %] -[%# If all the bugs being changed are open, allow the user to accept them, - clear their resolution or resolve them. %] -[% IF !bugstatuses.containsany(closedstates) %] - [% knum = knum + 1 %] - <input id="knob-accept" type="radio" name="knob" value="accept"> - <label for="knob-accept"> - Accept [% terms.bugs %] (change status to <b>[% get_status("ASSIGNED") FILTER html %]</b>) - </label><br> - - [% knum = knum + 1 %] +[%# If all the bugs being changed are open, allow the user to clear their resolution. %] +[% IF !current_bug_statuses.containsany(closedstates) %] <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="page.cgi?id=fields.html#resolution">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 %]"> - [% get_resolution(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>[% get_status("VERIFIED") FILTER html %]</b></label><br> - [% END %] -[% END %] - -[% IF !bugstatuses.containsany(openstates) AND !bugstatuses.contains('CLOSED') %] - [% knum = knum + 1 %] - <input id="knob-close" type="radio" name="knob" value="close"> - <label for="knob-close">Mark [% terms.bugs %] as <b>[% get_status("CLOSED") FILTER html %]</b></label><br> [% END %] <input type="submit" id="commit" value="Commit"> @@ -384,3 +344,13 @@ [% END %] </select> [% END %] + +[% BLOCK select_resolution %] + <select name="resolution" + onchange="document.forms['changeform'].[% field FILTER html %].checked=true"> + [% FOREACH r = resolutions %] + [% NEXT IF !r %] + <option value="[% r FILTER html %]">[% get_resolution(r) FILTER html %]</option> + [% END %] + </select> +[% END %] |