blob: 8dfdbbf71500081d5f0fbf4b7c0476788dea14ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
[%# 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): Frédéric Buclin <LpSolit@gmail.com>
# Gervase Markham <gerv@mozilla.org>
#%]
[% PROCESS "global/field-descs.none.tmpl" %]
[% INCLUDE global/header.html.tmpl
title = "Edit Actions Triggered by the Workflow"
style_urls = ['skins/standard/admin.css']
%]
<script type="text/javascript">
<!--
function toggle_cell(cell) {
if (cell.checked)
cell.parentNode.className = "checkbox-cell checked";
else
cell.parentNode.className = "checkbox-cell";
}
//-->
</script>
<p>
This page allows you to define which status transitions require a comment
by the user doing the change.
</p>
<form id="workflow_form" method="POST" action="editworkflow.cgi">
<table>
<tr>
<th colspan="2"> </th>
<th colspan="[% statuses.size FILTER html %]" class="title">To</th>
</tr>
<tr>
<th rowspan="[% statuses.size + 2 FILTER html %]" class="title">From</th>
<th> </th>
[% FOREACH status = statuses %]
<th class="col-header[% status.is_open ? " open-status" : " closed-status" %]">
[% status.name FILTER html %]
</th>
[% END %]
</tr>
[%# This defines the entry point in the workflow %]
[% p = [{id => 0, name => "{Start}", is_open => 1}] %]
[% FOREACH status = p.merge(statuses) %]
<tr class="highlight">
<th align="right" class="[% status.is_open ? "open-status" : "closed-status" %]">
[% status.name FILTER html %]
</th>
[% FOREACH new_status = statuses %]
[% IF workflow.${status.id}.${new_status.id}.defined %]
<td align="center" class="checkbox-cell
[% " checked" IF workflow.${status.id}.${new_status.id} %]"
title="From [% status.name FILTER html %] to [% new_status.name FILTER html %]">
<input type="checkbox" name="c_[% status.id %]_[% new_status.id %]"
id="c_[% status.id %]_[% new_status.id %]" onclick="toggle_cell(this)"
[% " checked='checked'" IF workflow.${status.id}.${new_status.id} %]>
</td>
[% ELSE %]
<td class="checkbox-cell forbidden"> </td>
[% END %]
[% END %]
</tr>
[% END %]
</table>
<p align="center">
<input type="hidden" name="action" value="update_comment">
<input type="hidden" name="token" value="[% token FILTER html %]">
<input type="submit" value="Commit Changes"> -
<a href="editworkflow.cgi?action=edit_comment">Cancel Changes</a> -
<a href="editworkflow.cgi">View Current Workflow</a>
</p>
</form>
[% INCLUDE global/footer.html.tmpl %]
|