[%# 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 %]Delete Product '[% product.name FILTER html %]' [% END %] [% PROCESS global/header.html.tmpl title = title style_urls = ['skins/standard/admin.css'] %] [% IF Param('useclassification') %] [%# descriptions are intentionally not filtered to allow html content %] [% END %] [%# descriptions are intentionally not filtered to allow html content %] [% IF Param('usetargetmilestone') %] [% END %] [% IF Param('usetargetmilestone') %] [% END %]
Field Value
Classification: [% classification.name FILTER html %]
Classification Description: [% IF classification.description %] [% classification.description FILTER html_light %] [% ELSE %] missing [% END %]
Product: [% product.name FILTER html %]
Description: [% IF product.description %] [% product.description FILTER html_light %] [% ELSE %] missing [% END %]
Milestone URL: [% IF product.milestone_url %] [%- product.milestone_url FILTER html %] [% ELSE %] none [% END %]
Closed for [% terms.bugs %]: [% IF product.is_active %] open [% ELSE %] closed [% END %]
[% IF product.components.size > 0 %] Components: [% ELSE %] Components: [% END %] [% IF product.components.size > 0 %] [% FOREACH c = product.components %] [%# descriptions are intentionally not filtered to allow html content %] [% END %]
[% c.name FILTER html %]: [% IF c.description %] [% c.description FILTER html_light %] [% ELSE %] missing [% END %]
[% ELSE %] none [% END %]
[% IF product.versions.size > 0 %] Versions: [% ELSE %] Versions: [% END %] [% IF product.versions.size > 0 %] [% FOREACH v = product.versions %] [% v.name FILTER html %]
[% END %] [% ELSE %] none [% END %]
[% IF product.milestones.size > 0 %] Milestones: [% ELSE %] Milestones: [% END %] [% IF product.milestones.size > 0 %] [% FOREACH m = product.milestones %] [% m.name FILTER html %]
[% END %] [% ELSE %] none [% END %]
[% terms.Bugs %]: [% IF product.bug_count %] [% product.bug_count FILTER html %] [% ELSE %] none [% END %]

Confirmation

[% IF product.bug_count %] [% IF !Param("allowbugdeletion") %]

Sorry, there [% IF product.bug_count > 1 %] are [% product.bug_count FILTER html %] [%+ terms.bugs %] [% ELSE %] is 1 [% terms.bug %] [% END %] outstanding for this product. You must reassign [% IF product.bug_count > 1 %] those [% terms.bugs %] [% ELSE %] that [% terms.bug %] [% END %] to another product before you can delete this one.

[% ELSE %]
There [% IF product.bug_count > 1 %] are [% product.bug_count FILTER html %] [%+ terms.bugs %] [% ELSE %] is 1 [% terms.bug %] [% END %] entered for this product! When you delete this product, ALL stored [% terms.bugs %] and their history will be deleted, too.
[% END %] [% END %] [% Hook.process("confirmation") %] [% IF product.bug_count == 0 || Param('allowbugdeletion') %]

Do you really want to delete this product?

[% END %] [% PROCESS admin/products/footer.html.tmpl %] [% PROCESS global/footer.html.tmpl %]