22
22
[% PROCESS global/variables.none.tmpl %]
24
[% PROCESS "global/js-products.html.tmpl" %]
24
26
[% PROCESS global/header.html.tmpl
25
27
title = 'Administer Flag Types'
27
table#flag_types tr th { text-align: left; }
29
table#flag_types_bugs tr th,
30
table#flag_types_attachments tr th { text-align: left; }
28
31
.inactive { color: #787878; }
32
.multiplicable { display: block; }
34
onload="selectProduct(document.forms[0], 'product', 'component', '__All__');"
35
javascript_urls=["productmenu.js"]
43
49
depending on whether the patch passed or failed review.
53
You can restrict the list of flag types to those available for a given product
54
and component. If a product is selected with no component, only flag types
55
which are available to at least one component of the product are shown.
58
<form action="editflagtypes.cgi" method="get">
61
<th><label for="product">Product:</label></th>
63
<select name="product" onchange="selectProduct(this.form, 'product', 'component', '__Any__');">
64
<option value="">__Any__</option>
65
[% FOREACH prod = products %]
66
<option value="[% prod.name FILTER html %]"
67
[% " selected" IF selected_product == prod.name %]>
68
[% prod.name FILTER html %]</option>
72
<th><label for="component">Component:</label></th>
74
<select name="component">
75
<option value="">__Any__</option>
76
[% FOREACH comp = components %]
77
<option value="[% comp FILTER html %]"
78
[% " selected" IF selected_component == comp %]>
79
[% comp FILTER html %]</option>
83
<td><input type="submit" id="submit" value="Filter"></td>
46
88
<h3>Flag Types for [% terms.Bugs %]</h3>
48
[% PROCESS display_flag_types types=bug_types %]
90
[% PROCESS display_flag_types types=bug_types types_id='bugs' %]
51
93
<a href="editflagtypes.cgi?action=enter&target_type=bug">Create Flag Type for [% terms.Bugs %]</a>
54
96
<h3>Flag Types for Attachments</h3>
56
[% PROCESS display_flag_types types=attachment_types %]
98
[% PROCESS display_flag_types types=attachment_types types_id='attachments' %]
59
101
<a href="editflagtypes.cgi?action=enter&target_type=attachment">Create Flag Type For Attachments</a>
76
122
<tr class="[% IF type.is_active %]active[% ELSE %]inactive[% END %]">
77
123
<td><a href="editflagtypes.cgi?action=edit&id=[% type.id %]">[% type.name FILTER html FILTER no_break %]</a></td>
78
124
<td>[% type.description FILTER html %]</td>
125
<td align="right">[% type.sortkey FILTER html %]</td>
127
[% IF type.is_requestable %]
128
<span class="requestable">requestable</span>
130
[% IF type.is_requestable && type.is_requesteeble %]
131
<span class="requesteeble">(specifically)</span>
133
[% IF type.is_multiplicable %]
134
<span class="multiplicable">multiplicable</span>
137
<td>[% IF type.grant_group %][% type.grant_group.name FILTER html %][% END %]</td>
138
<td>[% IF type.request_group %][% type.request_group.name FILTER html %][% END %]</td>
80
140
<a href="editflagtypes.cgi?action=copy&id=[% type.id %]">Copy</a>
81
141
| <a href="editflagtypes.cgi?action=confirmdelete&id=[% type.id %]">Delete</a>