summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/components/confirm-delete.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/admin/components/confirm-delete.html.tmpl')
-rw-r--r--template/en/default/admin/components/confirm-delete.html.tmpl81
1 files changed, 36 insertions, 45 deletions
diff --git a/template/en/default/admin/components/confirm-delete.html.tmpl b/template/en/default/admin/components/confirm-delete.html.tmpl
index 5e108e7a8..dabace154 100644
--- a/template/en/default/admin/components/confirm-delete.html.tmpl
+++ b/template/en/default/admin/components/confirm-delete.html.tmpl
@@ -20,29 +20,13 @@
#%]
[%# INTERFACE:
- # name: string; The name of the component
- #
- # description: string; Component description, may be empty
- #
- # bug_count: number; The number of bugs belonging to the component
- #
- # initialowner: string; default assignee, may be empty
- #
- # initialqacontact: string; if system parameter is set to use the default
- # qa contact field, then this will be it,
- # may be empty
- #
- # milestoneurl: string; milestone url, if milestones are in use,
- # may be empty
- #
- # product: string; The name of the product
- #
- # disallownew: boolean; Are new bugs allowed for the product flag
- #
- # product_description: string; Description of product
+ # comp: object; Bugzilla::Component object representing the component the
+ # user wants to delete.
+ # prod: object; Bugzilla::Product object representing the product to
+ # which the component belongs.
#%]
-[% title = BLOCK %]Delete Component of Product '[% product FILTER html %]'
+[% title = BLOCK %]Delete Component of Product '[% prod.name FILTER html %]'
[% END %]
[% PROCESS global/header.html.tmpl
@@ -56,54 +40,58 @@
</tr>
<tr>
<td valign="top">Component:</td>
- <td valign="top">[% name FILTER html %]</td>
+ <td valign="top">[% comp.name FILTER html %]</td>
</tr>
<tr>
<td valign="top">Component Description:</td>
- <td valign="top">[% description FILTER html %]</td>
+ <td valign="top">[% comp.description FILTER html %]</td>
</tr>
<tr>
<td valign="top">Default assignee:</td>
- <td valign="top">[% initialowner FILTER html %]</td>
+ <td valign="top">[% comp.default_assignee.login FILTER html %]</td>
[% IF Param('useqacontact') %]
</tr>
<tr>
<td valign="top">Default QA contact:</td>
- <td valign="top">[% initialqacontact FILTER html %]</td>
+ <td valign="top">[% comp.default_qa_contact.login FILTER html %]</td>
[% END %]
</tr>
<tr>
<td valign="top">Component of Product:</td>
- <td valign="top">[% product FILTER html %]</td>
+ <td valign="top">[% prod.name FILTER html %]</td>
-[% IF product_description %]
+[% IF prod.description %]
</tr>
<tr>
<td valign="top">Product Description:</td>
- <td valign="top">[% product_description FILTER html %]</td>
+ <td valign="top">[% prod.description FILTER html %]</td>
[% END %]
[% IF Param('usetargetmilestone') %]
</tr>
<tr>
<td valign="top">Product Milestone URL:</td>
- <td valign="top"><a href="[% milestoneurl FILTER uri %]">[% milestoneurl FILTER html %]</a></td>
+ <td valign="top">
+ <a href="[% prod.milestone_url FILTER uri %]">
+ [% prod.milestone_url FILTER html %]
+ </a>
+ </td>
[% END %]
</tr>
<tr>
<TD VALIGN="top">Closed for [% terms.bugs %]:</TD>
- <TD VALIGN="top">[% IF $disallownew %]Yes[% ELSE %]No[% END %]</td>
+ <TD VALIGN="top">[% IF prod.disallow_new %]Yes[% ELSE %]No[% END %]</td>
</tr>
<tr>
<td valign="top">[% terms.Bugs %]:</td>
<td valign="top">
-[% IF bug_count %]
- <a title="List of [% terms.bugs %] for component '[% name FILTER html %]'"
- href="buglist.cgi?component=[% name FILTER url_quote %]&amp;product=
- [%- product FILTER url_quote %]">[% bug_count %]</a>
+[% IF comp.bug_count %]
+ <a title="List of [% terms.bugs %] for component '[% comp.name FILTER html %]'"
+ href="buglist.cgi?component=[% comp.name FILTER url_quote %]&amp;product=
+ [%- prod.name FILTER url_quote %]">[% comp.bug_count %]</a>
[% ELSE %]
None
[% END %]
@@ -113,21 +101,21 @@
<h2>Confirmation</h2>
-[% IF bug_count %]
+[% IF comp.bug_count %]
[% IF !Param("allowbugdeletion") %]
Sorry, there
- [% IF bug_count > 1 %]
- are [% bug_count %] [%+ terms.bugs %]
+ [% IF comp.bug_count > 1 %]
+ are [% comp.bug_count %] [%+ terms.bugs %]
[% ELSE %]
- is [% bug_count %] [%+ terms.bug %]
+ is [% comp.bug_count %] [%+ terms.bug %]
[% END %]
outstanding for this component. You must reassign
- [% IF bug_count > 1 %]
+ [% IF comp.bug_count > 1 %]
those [% terms.bugs %]
[% ELSE %]
that [% terms.bug %]
@@ -139,8 +127,8 @@
<table border="0" cellpadding="20" width="70%" bgcolor="red"><tr><td>
- There [% IF bug_count > 1 %]
- are [% bug_count %] [%+ terms.bugs %]
+ There [% IF comp.bug_count > 1 %]
+ are [% comp.bug_count %] [%+ terms.bugs %]
[% ELSE %]
is 1 [% terms.bug %]
[% END %]
@@ -153,19 +141,22 @@
[% END %]
-[% IF bug_count == 0 || Param('allowbugdeletion') %]
+[% IF comp.bug_count == 0 || Param('allowbugdeletion') %]
<p>Do you really want to delete this component?<p>
<form method="post" action="editcomponents.cgi">
<input type="submit" value="Yes, delete">
<input type="hidden" name="action" value="delete">
- <input type="hidden" name="product" value="[% product FILTER html %]">
- <input type="hidden" name="component" value="[% name FILTER html %]">
+ <input type="hidden" name="product" value="[% prod.name FILTER html %]">
+ <input type="hidden" name="component" value="[% comp.name FILTER html %]">
</form>
[% END %]
-[% PROCESS admin/components/footer.html.tmpl %]
+[% PROCESS admin/components/footer.html.tmpl
+ name = comp.name
+ product = prod.name
+%]
[% PROCESS global/footer.html.tmpl %]