summaryrefslogtreecommitdiffstats
path: root/template/default/attachstatus
diff options
context:
space:
mode:
authormyk%mozilla.org <>2001-08-31 12:54:25 +0200
committermyk%mozilla.org <>2001-08-31 12:54:25 +0200
commit880e86c82eb67a6940e2a38e74c7e66dafb44743 (patch)
tree564680d0c4d636b7ea1ce9129598d07747fb509d /template/default/attachstatus
parent0e9bbc0b0cf55e2da4d5e4ea30ba8a02324d6265 (diff)
downloadbugzilla-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar.gz
bugzilla-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar.xz
Fix for bug 84338: initial implementation of attachment tracker, which lets users flag attachments with statuses.
Patch by Myk Melez <myk@mozilla.org> r=justdave@syndicomm.com
Diffstat (limited to 'template/default/attachstatus')
-rwxr-xr-xtemplate/default/attachstatus/create.atml56
-rwxr-xr-xtemplate/default/attachstatus/edit.atml52
-rwxr-xr-xtemplate/default/attachstatus/list.atml52
3 files changed, 160 insertions, 0 deletions
diff --git a/template/default/attachstatus/create.atml b/template/default/attachstatus/create.atml
new file mode 100755
index 000000000..602dab92e
--- /dev/null
+++ b/template/default/attachstatus/create.atml
@@ -0,0 +1,56 @@
+[% INCLUDE global/header
+ title = "Create Attachment Status"
+ style = "
+ th { text-align: right; vertical-align: top; }
+ td { text-align: left; vertical-align: top; }
+ "
+%]
+
+<form method="post" action="editattachstatuses.cgi">
+ <input type="hidden" name="action" value="insert">
+ <input type="hidden" name="id" value="[% id %]">
+
+ <table cellspacing="0" cellpadding="4" border="0">
+ <tr>
+ <th>Name:</th>
+ <td>
+ <input type="text" name="name" size="50" maxlength="50">
+ </td>
+ </tr>
+
+ <tr>
+ <th>Description:</th>
+ <td>
+ <textarea name="desc" rows="4" cols="50"></textarea>
+ </td>
+ </tr>
+
+ <tr>
+ <th>Sort Key:</th>
+ <td>
+ <input type="text" name="sortkey" size="5" maxlength="5">
+ </td>
+ </tr>
+
+ <tr>
+ <th>Product:</th>
+ <td>
+ <select name="product">
+ [% FOREACH item = products %]
+ <option value="[% item %]">[% item %]</option>
+ [% END %]
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <th></th>
+ <td>
+ <input type="submit" value="Add">
+ </td>
+ </tr>
+
+ </table>
+</form>
+
+[% INCLUDE global/footer %]
diff --git a/template/default/attachstatus/edit.atml b/template/default/attachstatus/edit.atml
new file mode 100755
index 000000000..646e0f0bf
--- /dev/null
+++ b/template/default/attachstatus/edit.atml
@@ -0,0 +1,52 @@
+[% INCLUDE global/header
+ title = "Edit Attachment Status"
+ style = "
+ th { text-align: right; vertical-align: top; }
+ td { text-align: left; vertical-align: top; }
+ "
+%]
+
+<form method="post" action="editattachstatuses.cgi">
+ <input type="hidden" name="action" value="update">
+ <input type="hidden" name="id" value="[% id %]">
+
+ <table cellspacing="0" cellpadding="4" border="0">
+ <tr>
+ <th>Name:</th>
+ <td>
+ <input type="text" name="name" value="[% name %]" size="50" maxlength="50">
+ </td>
+ </tr>
+
+ <tr>
+ <th>Description:</th>
+ <td>
+ <textarea name="desc" rows="4" cols="50">[% desc %]</textarea>
+ </td>
+ </tr>
+
+ <tr>
+ <th>Sort Key:</th>
+ <td>
+ <input type="text" name="sortkey" value="[% sortkey %]" size="5" maxlength="5">
+ </td>
+ </tr>
+
+ <tr>
+ <th>Product:</th>
+ <td>
+ [% product %]
+ </td>
+ </tr>
+
+ <tr>
+ <th></th>
+ <td>
+ <input type="submit" value="Update">
+ </td>
+ </tr>
+
+ </table>
+</form>
+
+[% INCLUDE global/footer %]
diff --git a/template/default/attachstatus/list.atml b/template/default/attachstatus/list.atml
new file mode 100755
index 000000000..acae5cd8d
--- /dev/null
+++ b/template/default/attachstatus/list.atml
@@ -0,0 +1,52 @@
+[% INCLUDE global/header
+ title = 'Administer Attachment Statuses'
+ message = message
+ style = "
+ th { text-align: left; }
+ "
+%]
+
+<table cellspacing="0" cellpadding="4" border="1">
+
+ <tr>
+ <th>Name</th>
+ <th>Description</th>
+ <th>Sort Key</th>
+ <th>Product</th>
+ <th>Action(s)</th>
+ </tr>
+
+ [% FOREACH statusdef = statusdefs %]
+
+ <tr>
+ <td>[% statusdef.name FILTER html %]</td>
+ <td>[% statusdef.description FILTER html %]</td>
+ <td>[% statusdef.sortkey %]</td>
+ <td>[% statusdef.product %]</td>
+ <td>
+ <a href="editattachstatuses.cgi?action=edit&id=[% statusdef.id %]">Edit</a>
+ <a href="editattachstatuses.cgi?action=delete&id=[% statusdef.id %]" onclick="return confirmDelete();">Delete</a>
+ </td>
+ </tr>
+
+ [% END %]
+
+ <tr>
+ <td colspan="4"></td>
+ <td>
+ <a href="editattachstatuses.cgi?action=create">Create</a>
+ </td>
+ </tr>
+
+</table>
+
+<script language="JavaScript">
+ function confirmDelete()
+ {
+ return confirm('Are you sure you want to permanently delete ' +
+ 'this attachment status? All attachments ' +
+ 'with this status will have it unset.');
+ }
+</script>
+
+[% INCLUDE global/footer %]