diff options
author | Simon Green <sgreen@redhat.com> | 2014-09-02 10:26:42 +1000 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2014-09-02 10:26:42 +1000 |
commit | e0fbbde652bd6ff8112399fc7d7bc96f19e92994 (patch) | |
tree | 3c295243c252e7675fcf9a1df53f7fc1f3ed5d5e /template | |
parent | 92b5ff149bb0ff364e88f14b588f160dc9866cca (diff) | |
download | bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.gz bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.bz2 bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.xz bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.zip |
Bug 281791 - Add ability to change flags in "change several bugs at once"
r=glob, a=sgreen
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/flag/list.html.tmpl | 16 | ||||
-rw-r--r-- | template/en/default/list/edit-multiple.html.tmpl | 7 |
2 files changed, 23 insertions, 0 deletions
diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl index 47406d6c0..455238cfc 100644 --- a/template/en/default/flag/list.html.tmpl +++ b/template/en/default/flag/list.html.tmpl @@ -119,6 +119,9 @@ class="flag_select flag_type-[% type.id %]" [% IF !can_edit_flag %] disabled="disabled"[% END %]> [%# Only display statuses the user is allowed to set. %] + [% IF edit_multiple_bugs %] + <option value="--do_not_change--">--do_not_change--</option> + [% END %] [% IF !flag || (can_edit_flag && user.can_request_flag(type)) || flag.setter_id == user.id %] <option value="X"></option> [% END %] @@ -168,6 +171,19 @@ [% END %] </td> [% END %] + <td> + [% IF type.is_multiplicable && edit_multiple_bugs %] + <input type="checkbox" + name="flags_add-[% type.id %]" + id="flags_add-[% type.id %]"> + <label for="flags_add-[% type.id %]"> + <a class="field_help_link" + title="If ticked, always create a new flag. Leaving it unchecked will update existing flag(s) and add a new flag if it does not exist"> + Always add? + </a> + </label> + [% END %] + <td> </tr> </tbody> [% END %] diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 144ae10c9..e581f0892 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -321,6 +321,13 @@ </script> [% END %] +[% IF flag_types %] +<b><label for="flags">Flags:</label></b><br> +[% PROCESS "flag/list.html.tmpl" + edit_multiple_bugs = 1 + flag_no_header = 1 %] +[% END %] + [% Hook.process('before_groups') %] [% IF groups.size > 0 %] |