summaryrefslogtreecommitdiffstats
path: root/template/en/default/flag
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/flag')
-rw-r--r--template/en/default/flag/list.html.tmpl94
1 files changed, 94 insertions, 0 deletions
diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl
new file mode 100644
index 000000000..951f248db
--- /dev/null
+++ b/template/en/default/flag/list.html.tmpl
@@ -0,0 +1,94 @@
+[%# 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.
+ #
+ # The Initial Developer of the Original Code is Netscape Communications
+ # Corporation. Portions created by Netscape are
+ # Copyright (C) 1998 Netscape Communications Corporation. All
+ # Rights Reserved.
+ #
+ # Contributor(s): Myk Melez <myk@mozilla.org>
+ #%]
+
+<table id="flags">
+
+ [% FOREACH type = flag_types %]
+ [% FOREACH flag = type.flags %]
+ <tr>
+ <td>
+ [% flag.setter.nick FILTER html %]:
+ </td>
+ <td>
+ [% type.name FILTER html %]
+ </td>
+ <td>
+ <select name="flag-[% flag.id %]">
+ <option value="X"></option>
+ <option value="+" [% "selected" IF flag.status == "+" %]>+</option>
+ <option value="-" [% "selected" IF flag.status == "-" %]>-</option>
+ <option value="?" [% "selected" IF flag.status == "?" %]>?</option>
+ </select>
+ </td>
+ <td>
+ [% IF flag.status == "?" && flag.requestee %]([% flag.requestee.nick FILTER html %])[% END %]
+ </td>
+ </tr>
+ [% END %]
+ [% IF !type.flags || type.flags.size == 0 %]
+ <tr>
+ <td>&nbsp;</td>
+ <td>[% type.name %]</td>
+ <td>
+ <select name="flag_type-[% type.id %]">
+ <option value="X"></option>
+ <option value="+">+</option>
+ <option value="-">-</option>
+ [% IF type.is_requestable %]
+ <option value="?">?</option>
+ [% END %]
+ </select>
+ </td>
+ <td>
+ [% IF type.is_requestable && type.is_requesteeble %]
+ (<input type="text" name="requestee-[% type.id %]" size="8" maxlength="255">)
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ [% END %]
+
+ [% FOREACH type = flag_types %]
+ [% NEXT UNLESS type.flags.size > 0 && type.is_multiplicable %]
+ [% IF !separator_displayed %]
+ <tr><td colspan="3"><hr></td></tr>
+ [% separator_displayed = 1 %]
+ [% END %]
+ <tr>
+ <td colspan="2">addl. [% type.name %]</td>
+ <td>
+ <select name="flag_type-[% type.id %]">
+ <option value="X"></option>
+ <option value="+">+</option>
+ <option value="-">-</option>
+ [% IF type.is_requestable %]
+ <option value="?">?</option>
+ [% END %]
+ </select>
+ </td>
+ <td>
+ [% IF type.is_requestable && type.is_requesteeble %]
+ (<input type="text" name="requestee-[% type.id %]" size="8" maxlength="255">)
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+
+</table>