[%# 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. #%] [%# INTERFACE: # product: Bugzilla::Product object; The product # # (classification fields available if Param('useclassification') is enabled:) # # classification: Bugzilla::Classification object; The classification # the product is in #%] [% title = BLOCK %]Edit Product '[% product.name FILTER html %]'[% END %] [% PROCESS global/header.html.tmpl title = title style_urls = ['skins/standard/admin.css'] javascript_urls = ['js/util.js'] %] [% group_control = {${constants.CONTROLMAPNA} => 'NA', ${constants.CONTROLMAPSHOWN} => 'Shown', ${constants.CONTROLMAPDEFAULT} => 'Default', ${constants.CONTROLMAPMANDATORY} => 'Mandatory'} %]
[% PROCESS "admin/products/edit-common.html.tmpl" %] [% IF Param('usetargetmilestone') %] [% END %]
Edit components: [% IF product.components.size -%] [% FOREACH component = product.components %] [% component.name FILTER html %]: [% component.description FILTER html_light %]
[% END %] [% ELSE %] missing [% END %]
Edit versions: [%- IF product.versions.size -%] [% FOREACH v = product.versions %] [% v.name FILTER html %]
[% END %] [% ELSE %] missing [% END %]
Edit milestones: [%- IF product.milestones.size -%] [%- FOREACH m = product.milestones -%] [% m.name FILTER html %]
[% END %] [% ELSE %] missing [% END %]
Edit Group Access Controls: [% IF product.group_controls.size %] [% FOREACH g = product.group_controls.values.sort("name") %] [% g.group.name FILTER html %]:  [% IF g.group.isactive %] [% group_control.${g.membercontrol} FILTER html %]/ [% group_control.${g.othercontrol} FILTER html %] [% IF g.entry %], ENTRY[% END %] [% IF g.canedit %], CANEDIT[% END %] [% IF g.editcomponents %], editcomponents[% END %] [% IF g.canconfirm %], canconfirm[% END %] [% IF g.editbugs %], editbugs[% END %] [% ELSE %] DISABLED [% END %]
[% END %] [% ELSE %] no groups [% END %]
[% terms.Bugs %]: [% product.bug_count FILTER html %]
[% PROCESS "admin/products/footer.html.tmpl" no_add_product_link = 1 no_edit_product_link = 1 %] [% PROCESS global/footer.html.tmpl %]