<!-- 1.0@bugzilla.org --> [%# 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> [% IF type.is_active %] <option value="+" [% "selected" IF flag.status == "+" %]>+</option> <option value="-" [% "selected" IF flag.status == "-" %]>-</option> [% IF type.is_requestable %] <option value="?" [% "selected" IF flag.status == "?" %]>?</option> [% END %] [% ELSE %] <option value="[% flag.status %]" selected>[% flag.status %]</option> [% END %] </select> </td> <td> [% IF flag.status == "?" && flag.requestee %]([% flag.requestee.nick FILTER html %]) [% ELSIF type.is_requestable && type.is_active %] <span style="white-space: nowrap;">(<input type="text" name="requestee-[% type.id %]" size="8" maxlength="255">)</span> [% END %] </td> </tr> [% END %] [% IF (!type.flags || type.flags.size == 0) && type.is_active %] <tr> <td> </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 %] <span style="white-space: nowrap;">(<input type="text" name="requestee-[% type.id %]" size="8" maxlength="255">)</span> [% END %] </td> </tr> [% END %] [% END %] [% FOREACH type = flag_types %] [% NEXT UNLESS type.flags.size > 0 && type.is_multiplicable && type.is_active %] [% 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 %] <span style="white-space: nowrap;">(<input type="text" name="requestee-[% type.id %]" size="8" maxlength="255">)</span> [% END %] </td> </tr> [% END %] </table>