~ubuntu-branches/ubuntu/oneiric/bugzilla/oneiric

« back to all changes in this revision

Viewing changes to template/en/default/admin/params/common.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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/
6
 
  #
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.
11
 
  #
12
 
  # The Original Code is the Bugzilla Bug Tracking System.
13
 
  #
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
17
 
  # Rights Reserved.
18
 
  #
19
 
  # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
20
 
  #%]
21
 
[%# INTERFACE:
22
 
  # panel: hash representing the current panel.
23
 
  #%]
24
 
 
25
 
<dl>
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 %]
29
 
      <p>
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" %]
44
 
        [% boxSize = 5 %]
45
 
        [% boxSize = param.choices.size IF param.choices.size < 5 %]
46
 
 
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 %]
53
 
            </option>
54
 
          [% END %]
55
 
        </select>
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 %]
62
 
            </option>
63
 
          [% END %]
64
 
        </select>
65
 
      [% ELSE %]
66
 
        <font color="red">
67
 
          <blink>Unknown param type [% param.type FILTER html %]!!!</blink>
68
 
        </font>
69
 
      [% END %]  
70
 
      </p>
71
 
      <p>
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>
75
 
      </p>
76
 
      <hr>
77
 
    </dd>
78
 
  [% END %]
79
 
</dl>