1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
22
# panel: hash representing the current panel.
26
[% FOREACH param = panel.param_list %]
27
<dt><a name="[% param.name FILTER html %]">[% param.name FILTER html %]</a></dt>
28
<dd>[% panel.param_descs.${param.name} FILTER none %]
30
[% IF param.type == "t" %]
31
<input size="80" name="[% param.name FILTER html %]"
32
value="[% Param(param.name) FILTER html %]">
33
[% ELSIF param.type == "l" %]
34
<textarea name="[% param.name FILTER html %]" rows="10" cols="80">
35
[% Param(param.name) FILTER html %]</textarea>
36
[% ELSIF param.type == "b" %]
37
<input type="radio" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]-on"
38
value=1 [% "checked=\"checked\"" IF Param(param.name) %]>
39
<label for="[% param.name FILTER html %]-on">On</label>
40
<input type="radio" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]-off"
41
value=0 [% "checked=\"checked\"" IF !Param(param.name) %]>
42
<label for="[% param.name FILTER html %]-off">Off</label>
43
[% ELSIF param.type == "m" %]
45
[% boxSize = param.choices.size IF param.choices.size < 5 %]
47
<select multiple="multiple" size="[% boxSize FILTER html %]"
48
name="[% param.name FILTER html %]">
49
[% FOREACH item = param.choices %]
50
<option value="[% item FILTER html %]"
51
[% " selected=\"selected\"" IF lsearch(Param(param.name), item) != -1 %]>
52
[% item FILTER html %]
56
[% ELSIF param.type == "s" %]
57
<select name="[% param.name FILTER html %]">
58
[% FOREACH item = param.choices %]
59
<option value="[% item FILTER html %]"
60
[% " selected=\"selected\"" IF item == Param(param.name) %]>
61
[% item FILTER html %]
67
<blink>Unknown param type [% param.type FILTER html %]!!!</blink>
72
<input type="checkbox" name="reset-[% param.name FILTER html %]"
73
id="reset-[% param.name FILTER html %]">
74
<label for="reset-[% param.name FILTER html %]">Reset</label>