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

« back to all changes in this revision

Viewing changes to template/en/default/account/prefs/settings.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
 
  # Contributor(s): Shane H. W. Travis <travis@sedsystems.ca>
15
 
  #                 Frédéric Buclin <LpSolit@gmail.com>
16
 
  #
17
 
  #%]
18
 
 
19
 
[%# INTERFACE:
20
 
  # setting_names: an array of strings
21
 
  # settings:      a hash of hashes, keyed by setting_name.
22
 
  #                Each hash contains:
23
 
  #                 is_enabled    - boolean
24
 
  #                 default_value - string (global default for this setting)
25
 
  #                 value         - string (user-defined preference)
26
 
  #                 is_default    - boolean (true if user has no preference)
27
 
  # has_settings_enabled : boolean; is true if there is at least one user pref
28
 
  #                        enabled by the maintainer.
29
 
  #%]
30
 
 
31
 
[% PROCESS "global/setting-descs.none.tmpl" %]
32
 
 
33
 
[% IF settings.size %]
34
 
  [% UNLESS has_settings_enabled %]
35
 
    <p class="criticalmessages">
36
 
      All user preferences have been disabled by the
37
 
      <a href="mailto:[% Param("maintainer") %]">maintainer</a>
38
 
      of this installation, and so you cannot customize any.
39
 
    </p>
40
 
  [% END %]
41
 
 
42
 
  <table border="0" cellpadding="8">
43
 
    [% FOREACH name = setting_names %]
44
 
      [% default_name = name _ '-isdefault' %]
45
 
      [% default_val = settings.${name}.default_value %]
46
 
      <tr>
47
 
        <td align="right">
48
 
          [% setting_descs.$name OR name FILTER html %]
49
 
        </td>
50
 
        <td>
51
 
          [% IF settings.${name}.is_enabled %]
52
 
            <select name="[% name FILTER html %]" id="[% name FILTER html %]">
53
 
              <option value="[% default_name FILTER html %]"
54
 
                [% ' selected="selected"' IF settings.${name}.is_default %]>
55
 
                Site Default ([% setting_descs.${default_val} OR default_val FILTER html %])
56
 
              </option>
57
 
              [% FOREACH x = settings.${name}.legal_values %]
58
 
                <option value="[% x FILTER html %]"
59
 
                  [% ' selected="selected"' 
60
 
                    IF x == settings.${name}.value
61
 
                    AND NOT settings.${name}.is_default %]>
62
 
                  [% setting_descs.${x} OR x FILTER html %]
63
 
                </option>
64
 
              [% END %]
65
 
            </select>
66
 
          [% ELSE %]
67
 
            <select name="[% name FILTER html %]" id="[% name FILTER html %]" disabled="disabled">
68
 
              <option value="[% default_name FILTER html %]">
69
 
                Site Default ([% setting_descs.${default_val} OR default_val FILTER html %])
70
 
              </option>
71
 
            </select>
72
 
          [% END %]
73
 
        </td>
74
 
      </tr>
75
 
    [% END %]
76
 
  </table>
77
 
[% END %]
78
 
<br>