-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathedit_config.tt2
79 lines (74 loc) · 2.27 KB
/
edit_config.tt2
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
<!-- $Id$ -->
<div class="block">
<h2>[%|loc%]Edit robot config[%END%]</h2><br />
<div>
<ul>
[% FOREACH confparam IN editable_params %]
[% IF confparam.title %]<li><a href="#[%confparam.group%]">[%confparam.title%]</a></li>[% END %]
[% END %]
</ul>
<p>
[% SET close_table = '' %]
[% FOREACH confparam IN editable_params %]
[% IF confparam.title %]
[% close_table %]
<a name="[%confparam.group%]"></a>
<h4>[% confparam.title %]</h4>
<table class="responsive listOfItems"><tr><th>[%|loc%]parameter name[%END%]</th><th>[%|loc%]value[%END%]</th><th>[%|loc%]apply to[%END%]</th><th>[%|loc%]default[%END%]</th>[%# <th>semantic</th> %]</tr>
[% ELSE %]
[% IF dark == '1' %]
<tr> [% SET dark='0'%]
[% ELSE %]
<tr class="color0">[% SET dark='1'%]
[% END %]
<form action="[% path_cgi %]" method="post">
<td [% IF confparam.query ~%]
data-tooltip aria-haspopup="true" title="[% confparam.query %]"
[%~ END %]>
<strong>[% confparam.name %]</strong>
</td>
<td>
[% IF confparam.edit == '1' && removethistesttoenblefeature == '1' %]
<input type="text" name="conf_new_value" value="[% confparam.current_value %]" style="width:75%"/>
<input type="hidden" name="conf_parameter_name" value="[% confparam.name %]" />
<input class="MainMenuLinks" type="submit" name="action_edit_config" value="[%|loc%]Set[%END%]" style="width:20%" />
[% ELSE %]
[% UNLESS confparam.obfuscated == '1' %]
[% confparam.current_value %]
[% ELSE %]
[% confparam.current_value.replace('.','*') %]
[% END %]
[% END %]
</td>
<td>
[% IF confparam.vhost == '1' ~%]
[% IF confparam.edit == '1' && removethistesttoenblefeature == '1' %]
[%~ IF robots ~%]
<select name="robot">
[% FOREACH vr = robots ~%]
<option value="[% vr.key %]"
[%~ IF vr.key == robot %] selected="selected" [% END ~%]
>[% vr.key %]</option>
[% END %]
</select>
[%~ ELSE ~%]
<input type="hidden" name="robot" value="[% robot %] />
[%~ robot %]
[%~ END %]
[%~ ELSE ~%]
[% robot %]
[%~ END %]
[%~ ELSE ~%]
[%|loc%]main conf[%END%]
[%~ END %]
</td>
<td>[% confparam.default %]</td>
</form>
</tr>
[% SET close_table = '</table>' %]
[% END %]
[% END %]
[% close_table %]
</div>
</div>
<!-- end edit_config.tt2 -->