~ubuntu-branches/ubuntu/edgy/bugzilla/edgy

« back to all changes in this revision

Viewing changes to template/en/default/admin/attachstatus/list.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Alexis Sukrieh
  • Date: 2005-10-03 16:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051003165101-38n0y5qofd68vole
Tags: 2.18.4-1
* New upstream minor release
  + Fixed a security issue: It was possible to bypass the "user
    visibility groups" restrictions if user-matching was turned on
    in "substring" mode.
  + Fixed a security issue: config.cgi exposed information to users who
    weren't logged in, even when "requirelogin" was turned on in Bugzilla.
  (closes: #331206)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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/
6
 
  #
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.
11
 
  #
12
 
  # The Original Code is the Bugzilla Bug Tracking System.
13
 
  #
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
17
 
  # Rights Reserved.
18
 
  #
19
 
  # Contributor(s): Myk Melez <myk@mozilla.org>
20
 
  #%]
21
 
 
22
 
[%# INTERFACE:
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.
30
 
  #%]
31
 
 
32
 
[% PROCESS global/header.html.tmpl 
33
 
  title = 'Administer Attachment Statuses'
34
 
  message = message
35
 
  style = "
36
 
    th { text-align: left; }
37
 
  "
38
 
%]
39
 
 
40
 
<table cellspacing="0" cellpadding="4" border="1">
41
 
 
42
 
  <tr>
43
 
    <th>Name</th>
44
 
    <th>Description</th>
45
 
    <th>Sort Key</th>
46
 
    <th>Product</th>
47
 
    <th>Action(s)</th>
48
 
  </tr>
49
 
 
50
 
  [% FOREACH statusdef = statusdefs %]
51
 
 
52
 
    <tr>
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>
57
 
      <td>
58
 
        <a href="editattachstatuses.cgi?action=edit&id=[% statusdef.id %]">
59
 
            Edit</a>
60
 
        &nbsp;|&nbsp;
61
 
        <a href="editattachstatuses.cgi?action=confirmdelete&id=[% statusdef.id %]" 
62
 
         onclick="return confirmDelete([% statusdef.attachcount %],
63
 
                                       '[% statusdef.name FILTER js %]',
64
 
                                       [% statusdef.id %]);">
65
 
            Delete</a>
66
 
      </td>
67
 
    </tr>
68
 
 
69
 
  [% END %]
70
 
 
71
 
  <tr>
72
 
    <td colspan="4"></td>
73
 
    <td>
74
 
      <a href="editattachstatuses.cgi?action=create">Create</a>
75
 
    </td>
76
 
  </tr>
77
 
 
78
 
</table>
79
 
<script language="JavaScript">
80
 
  function confirmDelete(attachcount, name, id)
81
 
  {
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?';
87
 
    }
88
 
    else {
89
 
        msg = 'Are you sure you want to delete attachment status ' +
90
 
              name + '?';
91
 
    }
92
 
    if (confirm(msg)) {
93
 
      location.href = "editattachstatuses.cgi?action=delete&id=" + id;
94
 
    }
95
 
    return false;
96
 
  }
97
 
</script>
98
 
 
99
 
[% PROCESS global/footer.html.tmpl %]