[%# 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: object; the new product. # versions: array; versions for the new product. # components: array; components for the new product. # milestones: array; milestones for the new product. # defaults: hash; keys are names of fields, values are defaults for # those fields # # verify_bug_groups: If groups need to be confirmed in addition to fields. #%] [% PROCESS global/header.html.tmpl title = 'Verify New Product Details...' style_urls = ['skins/standard/buglist.css'] %]
[% SET exclude_items = ['version', 'component', 'target_milestone'] %] [% IF verify_bug_groups %] [% exclude_items.push('groups', 'defined_groups') %] [% END %] [% Hook.process('exclude') %] [% PROCESS "global/hidden-fields.html.tmpl" exclude = '^' _ exclude_items.join('|') _ '$' %] [%# Verify the version, component, and target milestone fields. %]

Verify Version, Component [%- ", Target Milestone" IF Param("usetargetmilestone") && bug.check_can_change_field('target_milestone', 0, 1) %]

[% IF Param("usetargetmilestone") && bug.check_can_change_field('target_milestone', 0, 1) %] You are moving the [% terms.bug %](s) to the product [% product.name FILTER html %], and the version, component, and/or target milestone fields are no longer correct. Please set the correct version, component, and target milestone now: [% ELSE %] You are moving the [% terms.bug %](s) to the product [% product.name FILTER html %], and the version and component fields are no longer correct. Please set the correct version and component now: [% END %]

[% IF Param("usetargetmilestone") && bug.check_can_change_field('target_milestone', 0, 1) %] [% END %] [% Hook.process('field') %]
Version:
[% IF versions.size == 1 %] [% SET default_version = versions.0 %] [% ELSE %] [% SET default_version = defaults.version %] [% END %] [% PROCESS "global/select-menu.html.tmpl" name="version" options=versions default=default_version size=10 %]
Component:
[% IF components.size == 1 %] [% SET default_component = components.0 %] [% ELSE %] [% SET default_component = defaults.component %] [% END %] [% PROCESS "global/select-menu.html.tmpl" name="component" options=components default=default_component size=10 %]
Target Milestone:
[% PROCESS "global/select-menu.html.tmpl" name="target_milestone" options=milestones default=defaults.milestone size=10 %]
[% IF verify_bug_groups %] [% mandatory_groups = [] %] [% optional_groups = [] %] [% FOREACH gid = product.group_controls.keys %] [% group = product.group_controls.$gid %] [% NEXT UNLESS group.group.is_active %] [% IF group.membercontrol == constants.CONTROLMAPMANDATORY || (group.othercontrol == constants.CONTROLMAPMANDATORY && !user.in_group(group.group.name)) %] [% mandatory_groups.push(group) %] [% ELSIF (group.membercontrol != constants.CONTROLMAPNA && user.in_group(group.group.name)) || group.othercontrol != constants.CONTROLMAPNA %] [% optional_groups.push(group) %] [% END %] [% END %] [% IF old_groups.size || optional_groups.size || mandatory_groups.size %]

Verify [% terms.Bug %] Group

[% END %] [% IF old_groups.size %]

These groups are not legal for the '[% product.name FILTER html %]' product or you are not allowed to restrict [% terms.bugs %] to these groups. [%+ terms.Bugs %] will no longer be restricted to these groups and may become public if no other group applies:
[% FOREACH group = old_groups %]
[% END %]

[% END %] [% IF optional_groups.size %]

These groups are optional. You can decide to restrict [% terms.bugs %] to one or more of the following groups:
[% IF multiple_bugs %] [% FOREACH group = optional_groups %] [% END %]
Remove [% terms.bugs %] from this group Add [% terms.bugs %] to this group Group Name
[% group.group.description FILTER html %]
[% ELSE %] [% FOREACH group = optional_groups %]
[% END %] [% END %]

[% END %] [% IF mandatory_groups.size %]

These groups are mandatory and [% terms.bugs %] will be automatically restricted to these groups:
[% FOREACH group = mandatory_groups %]
[% END %]

[% END %] [% END %]

[%# If 'id' is defined, then we are editing a single bug. # Else we are editing several bugs at once. %] [% IF cgi.param('id') AND cgi.param('id').match('^\d+$') %] [% id = cgi.param('id') %] Cancel and Return to [% "$terms.bug $id" FILTER bug_link(id) FILTER none %] [% ELSE %] Cancel and Return to the last search results [% END %] [% PROCESS global/footer.html.tmpl %]