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
# Contributor(s): Shane H. W. Travis <travis@sedsystems.ca>
15
# Frédéric Buclin <LpSolit@gmail.com>
20
# setting_names: an array of strings
21
# settings: a hash of hashes, keyed by setting_name.
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.
31
[% PROCESS "global/setting-descs.none.tmpl" %]
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.
42
<table border="0" cellpadding="8">
43
[% FOREACH name = setting_names %]
44
[% default_name = name _ '-isdefault' %]
45
[% default_val = settings.${name}.default_value %]
48
[% setting_descs.$name OR name FILTER html %]
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 %])
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 %]
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 %])