[%# 1.0@bugzilla.org %] [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # Contributor(s): Gavin Shelley #%] [%# 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 classification %] [% classification_url_part = BLOCK %]&classification= [%- classification.name FILTER url_quote %] [%- END %] [% ELSE %] [% classification_url_part = "" %] [% END %] [% 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.disallownew %] closed [% ELSE %] open [% 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 %] [% 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 %]