From dac9873a61b108133ee00bda5b1862404712dd63 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 30 Apr 2015 14:06:06 +0800 Subject: Bug 1151745: add ui to minimise steps required to move bugs between products --- .../default/bug_modal/new_product_groups.html.tmpl | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 extensions/BugModal/template/en/default/bug_modal/new_product_groups.html.tmpl (limited to 'extensions/BugModal/template/en/default/bug_modal/new_product_groups.html.tmpl') diff --git a/extensions/BugModal/template/en/default/bug_modal/new_product_groups.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/new_product_groups.html.tmpl new file mode 100644 index 000000000..29658faed --- /dev/null +++ b/extensions/BugModal/template/en/default/bug_modal/new_product_groups.html.tmpl @@ -0,0 +1,59 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[%# + # product: product object + # groups: + # invalid => [{ id, name, description, checked }...] + # mandatory => " + # optional => " + #%] + +[% PROCESS group_list + group_set = groups.invalid + label = "Groups that are not valid for the '" _ product.name _ "' product:" + enabled = 0 + disabled = 1 +%] +[% PROCESS group_list + group_set = groups.mandatory + label = "Mandatory '" _ product.name _ "' groups:" + enabled = 1 + disabled = 1 +%] +[% PROCESS group_list + group_set = groups.optional + label = "Optional '" _ product.name _ "' groups:" + enabled = 1 + disabled = 0 +%] + + +[% BLOCK group_list %] + [% RETURN UNLESS group_set.size %] + [% FILTER collapse %] +
+
+ [% label FILTER html %] +
+ + [% FOREACH g = group_set %] +
+ + +
+ [% END %] +
+ [% END %] +[% END %] -- cgit v1.2.3-24-g4f1b