summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl
blob: b58df82982ba23bc956f61f680bb0818171bc55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 %]