[%# 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 type = "invalid" label = "Groups that are not valid for the '" _ product.name _ "' product:" enabled = 0 disabled = 1 %] [% PROCESS group_list type = "mandatory" label = "Mandatory '" _ product.name _ "' groups:" enabled = 1 disabled = 1 %] [% PROCESS group_list type = "optional" label = "Optional '" _ product.name _ "' groups:" enabled = 1 disabled = 0 %] [% BLOCK group_list %] [% RETURN UNLESS groups.$type.size %] [% FILTER collapse %]
[% label FILTER html %]
[% FOREACH g = groups.$type %]
[% IF g.checked %] [% END %]
[% END %]
[% END %] [% END %]