summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-09-02 02:26:42 +0200
committerSimon Green <sgreen@redhat.com>2014-09-02 02:26:42 +0200
commite0fbbde652bd6ff8112399fc7d7bc96f19e92994 (patch)
tree3c295243c252e7675fcf9a1df53f7fc1f3ed5d5e /template/en
parent92b5ff149bb0ff364e88f14b588f160dc9866cca (diff)
downloadbugzilla-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.gz
bugzilla-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.xz
Bug 281791 - Add ability to change flags in "change several bugs at once"
r=glob, a=sgreen
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/flag/list.html.tmpl16
-rw-r--r--template/en/default/list/edit-multiple.html.tmpl7
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 %]