summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-07-24 10:54:01 +0200
committerByron Jones <bjones@mozilla.com>2012-07-24 10:54:01 +0200
commitcfd67484c07a29617c3e35e03b90bdd3befc6dd7 (patch)
treeafa8c64e2f79ddf156101a69758a907d49c42362 /extensions/BMO/template
parentd60fcb5fdf1e208c46b807c4e91e05eb65307243 (diff)
downloadbugzilla-cfd67484c07a29617c3e35e03b90bdd3befc6dd7.tar.gz
bugzilla-cfd67484c07a29617c3e35e03b90bdd3befc6dd7.tar.xz
Bug 772776: add a "visiblity group" for the partner-confidential group
Diffstat (limited to 'extensions/BMO/template')
-rw-r--r--extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl38
1 files changed, 26 insertions, 12 deletions
diff --git a/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl b/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl
index 1b1f1d67d..0a3b75262 100644
--- a/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl
+++ b/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl
@@ -2,17 +2,31 @@
<th>Security:</th>
<td colspan="3">
[% sec_group = sec_groups.${product.name} || sec_groups._default %]
-
- <input type="checkbox" name="groups"
- value="[% sec_group FILTER none %]" id="groups"
- [% FOREACH g = group %]
- [% IF g.name == sec_group %]
- [% " checked=\"checked\"" IF g.checked %]
- [% END %]
- [% END %]
- >
- <label for="groups">Many users could be harmed by this security problem:
- it should be kept hidden from the public until it is resolved.</label>
- <br><br>
+ [% PROCESS group_checkbox
+ name = sec_group
+ desc = "Many users could be harmed by this security problem: " _
+ "it should be kept hidden from the public until it is resolved."
+ %]
+ [% IF user.in_group('partner-confidential-visible') %]
+ [% PROCESS group_checkbox
+ name = 'partner-confidential'
+ desc = "Restrict the visiblity of this " _ terms.bug _ " to " _
+ "the assignee, QA contact, and CC list only."
+ %]
+ [% END %]
+ <br>
</td>
</tr>
+
+[% BLOCK group_checkbox %]
+ <input type="checkbox" name="groups"
+ value="[% name FILTER none %]" id="group_[% name FILTER html %]"
+ [% FOREACH g = group %]
+ [% IF g.name == name %]
+ [% ' checked="checked"' IF g.checked %]
+ [% LAST %]
+ [% END %]
+ [% END %]
+ >
+ <label for="group_[% name FILTER html %]">[% desc FILTER html %]</label><br>
+[% END %]