1
<!-- 1.0@bugzilla.org -->
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Myk Melez <myk@mozilla.org>
23
# statusdefs: list of hashes. may be empty. Each hash has six members:
24
# name: string. The name of the attachment status.
25
# description: string. Its description.
26
# sortkey: integer. Sorting priority.
27
# product: string. The product to which the attachment status applies.
28
# id: integer. Its internal ID number.
29
# attachcount: integer. How many attachments have that status.
32
[% PROCESS global/header.html.tmpl
33
title = 'Administer Attachment Statuses'
36
th { text-align: left; }
40
<table cellspacing="0" cellpadding="4" border="1">
50
[% FOREACH statusdef = statusdefs %]
53
<td>[% statusdef.name FILTER html %]</td>
54
<td>[% statusdef.description FILTER html %]</td>
55
<td>[% statusdef.sortkey %]</td>
56
<td>[% statusdef.product FILTER html %]</td>
58
<a href="editattachstatuses.cgi?action=edit&id=[% statusdef.id %]">
61
<a href="editattachstatuses.cgi?action=confirmdelete&id=[% statusdef.id %]"
62
onclick="return confirmDelete([% statusdef.attachcount %],
63
'[% statusdef.name FILTER js %]',
64
[% statusdef.id %]);">
74
<a href="editattachstatuses.cgi?action=create">Create</a>
79
<script language="JavaScript">
80
function confirmDelete(attachcount, name, id)
82
if (attachcount > 0) {
83
msg = attachcount + ' attachments have the status ' +
84
name + '. If you delete it, those attachments ' +
85
'will lose this status. Do you really want to ' +
86
'delete this status?';
89
msg = 'Are you sure you want to delete attachment status ' +
93
location.href = "editattachstatuses.cgi?action=delete&id=" + id;
99
[% PROCESS global/footer.html.tmpl %]