[%# 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_name: string; The name of the product # # prod_description: string; Product description, may be empty # # (classification fields available if Param('useclassification') is enabled:) # # classification: string; The name of the classification the product is in # # class_description: string; Classification description, may be empty # # bug_count: number; The number of bugs belonging to the product # # milestoneurl: string; milestone url, if milestones are in use, # may be empty # # disallownew: boolean; Are new bugs allowed for the product flag # # components: list of hashes, members are: name, description # # versions: list of version values. # # milestones: list of milestone values. # #%] [% 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 FILTER url_quote %] [%- END %] [% ELSE %] [% classification_url_part = "" %] [% END %] [% UNLESS class_description %] [% class_description = 'missing' %] [% END %] [% UNLESS prod_description %] [% prod_description = 'missing' %] [% END %] [% IF disallownew %] [% disallownew = "closed" %] [% ELSE %] [% disallownew = "open" %] [% 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 %]
Field Value
Classification: [% classification FILTER html %]
Classification Description:[% class_description FILTER none %]
Product: [% product_name FILTER html %]
Description:[% prod_description FILTER none %]
Milestone URL: [% IF milestoneurl %] [%- milestoneurl FILTER html %] [% ELSE %] none [% END %]
Closed for [% terms.bugs %]: [% disallownew FILTER html %]
[% IF components.size > 0 %] Components: [% ELSE %] Components: [% END %] [% IF components.size > 0 %] [% FOREACH c = components %] [%# descriptions are intentionally not filtered to allow html content %] [% END %]
[% c.name FILTER html %]: [% IF c.description %] [% c.description FILTER none %] [% ELSE %] missing [% END %]
[% ELSE %] none [% END %]
[% IF versions.size > 0 %] Versions: [% ELSE %] Versions: [% END %] [% IF versions.size > 0 %] [% FOREACH v = versions %] [% v FILTER html %]
[% END %] [% ELSE %] none [% END %]
[% IF milestones.size > 0 %] Milestones: [% ELSE %] Milestones: [% END %] [% IF milestones.size > 0 %] [% FOREACH m = milestones %] [% m FILTER html %]
[% END %] [% ELSE %] none [% END %]
[% terms.Bugs %]: [% IF bug_count %] [% bug_count %] [% ELSE %] none [% END %]

Confirmation

[% IF bug_count %] [% IF !Param("allowbugdeletion") %] Sorry, there [% IF bug_count > 1 %] are [% bug_count %] [%+ terms.bugs %] [% ELSE %] is 1 [% terms.bug %] [% END %] outstanding for this product. You must reassign [% IF bug_count > 1 %] those [% terms.bugs %] [% ELSE %] that [% terms.bug %] [% END %] to another product before you can delete this one. [% ELSE %]
There [% IF bug_count > 1 %] are [% bug_count %] [%+ 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 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 %]