blob: 4a60069dfbe38c3ded27f1d831b87c077fbea470 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[% curpanel = -1 %]
[% panels = panels.nsort('sortkey') %]
[% FOREACH panel = panels %]
[% PROCESS "admin/params/${panel.name}.html.tmpl"
params = panel.param_list %]
[% panel.title = title %]
[% panel.desc = desc %]
[% panel.param_descs = param_descs %]
[% IF panel.current %][% curpanel = loop.index %][% END %]
[% END %]
[% current_panel = panels.$curpanel %]
[%# We cannot call header.html.tmpl earlier as we have to know
which panel is active first, in order to get its title %]
[% title = BLOCK %]
[% IF curpanel == -1 %]
Parameters: Index
[% ELSE %]
Configuration:
[%+ current_panel.title FILTER html %]
[% END %]
[% END %]
[% PROCESS global/header.html.tmpl
title = title
message = message
style_urls = ['skins/standard/admin.css']
javascript_urls = ['js/params.js', 'js/util.js']
doc_section = "administering/parameters.html"
%]
<div class="row">
<div class="col-sm-2">
[%# NAVIGATION BAR %]
<div class="list-group">
<a href="editparams.cgi?section=index" class="list-group-item list-group-item-info" title="Show all parameters">Index</a>
[% FOREACH panel = panels %]
[% IF panel.current %]
[% Hook.process("current_panel") %]
<a href="#" class="list-group-item active" title="[% panel.desc FILTER html %]">[% panel.title FILTER html %]</a>
[% ELSE %]
<a href="editparams.cgi?section=[% panel.name FILTER uri %]"
class="list-group-item" title="[% panel.desc FILTER html %]">[% panel.title FILTER html %]</a>
[% END %]
[% END %]
</div>
</div>
<div class="col-sm-10">
<div id="contribute" class="well">
<strong>Note:</strong>
Bugzilla is developed entirely by volunteers.
The best way to give back to the Bugzilla project is to
<a href="http://www.bugzilla.org/contribute/">contribute</a> yourself!
You don't have to be a programmer to contribute, there are lots of
things that we need.
</div>
[% IF curpanel == -1 %]
[% PROCESS admin/params/index.html.tmpl panels = panels %]
[% ELSE %]
<div class="well">
This lets you edit the basic operating parameters of Bugzilla.
Be careful!<br>
Any item you check "Reset" on will get reset to its default value.
</div>
[%# CONTENT PANEL %]
<form id="edit_params" method="post" action="editparams.cgi">
[% PROCESS admin/params/common.html.tmpl panel = current_panel %]
<input type="hidden" name="section" value="[% current_panel.name FILTER html %]">
<input type="hidden" name="action" value="save">
<input type="hidden" name="token" value="[% token FILTER html %]">
<input type="submit" class="btn btn-primary" id="save-params" value="Save Changes">
</form>
[% END %]
</div>
</div>
[% INCLUDE global/footer.html.tmpl %]
|