diff options
author | Dylan William Hardison <dylan@hardison.net> | 2015-10-31 02:03:58 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2015-10-31 02:06:57 +0100 |
commit | 5852295860d51040f69bbaf957cc8ed6bfd7358b (patch) | |
tree | a0781afa608c45912a97c1b2ac3b75e0d8659f2b /template/en/default/admin/params | |
parent | f03cb21e297f73fcfca9740ff8e2c525a745d7ad (diff) | |
download | bugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.gz bugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.xz |
Bug 1218457 - Allow localconfig to override (force) certain data/params values
Diffstat (limited to 'template/en/default/admin/params')
-rw-r--r-- | template/en/default/admin/params/common.html.tmpl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/template/en/default/admin/params/common.html.tmpl b/template/en/default/admin/params/common.html.tmpl index d86da0dcd..6458ba419 100644 --- a/template/en/default/admin/params/common.html.tmpl +++ b/template/en/default/admin/params/common.html.tmpl @@ -28,9 +28,19 @@ <dl> [% FOREACH param = panel.param_list %] - <dt id="[% param.name FILTER html %]_desc">[% param.name FILTER html %]</dt> + <dt id="[% param.name FILTER html %]_desc">[% param.name FILTER html %] + [% IF panel.param_override.${param.name}.defined %] + (localconfig override) + [% END %] + </dt> <dd>[% panel.param_descs.${param.name} FILTER none %] <p> + [% IF panel.param_override.${param.name}.defined %] + <input type="hidden" name="[% param.name FILTER html %] value="[% Param(param.name) FILTER html %]"> + <input type="text" size="80" readonly + id="[% param.name FILTER html %]" value="[% panel.param_override.${param.name} FILTER html %]"> + [% NEXT %] + [% END %] [% IF param.type == "t" %] <input type="text" size="80" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]" value="[% Param(param.name) FILTER html %]"> |