summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl')
-rw-r--r--extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl26
1 files changed, 26 insertions, 0 deletions
diff --git a/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl b/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl
new file mode 100644
index 000000000..b58df8298
--- /dev/null
+++ b/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl
@@ -0,0 +1,26 @@
+[%# 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.
+ #%]
+
+[%# this file allows us to pull in data defined in the BMO ext %]
+
+[% IF create_bug_formats %]
+ [% FOREACH product = create_bug_formats %]
+ if (!products['[% product.key FILTER js %]']) [% ~%]
+ products['[% product.key FILTER js %]'] = {};
+ products['[% product.key FILTER js %]'].format = '[% product.value FILTER js %]';
+ [% END %]
+[% END %]
+
+[% IF product_sec_groups %]
+ [% FOREACH product = product_sec_groups %]
+ if (!products['[% product.key FILTER js %]']) [% ~%]
+ products['[% product.key FILTER js %]'] = {};
+ products['[% product.key FILTER js %]'].secgroup = '[% product.value FILTER js %]';
+ [% END %]
+[% END %]
+