Skip to content

Commit 1c51af3

Browse files
authored
Allowing normal user to change proxy template, web template
1 parent d0e2ecc commit 1c51af3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

web/templates/user/edit_web.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,30 @@
9494
<tr>
9595
<td class="step-left">
9696
<table style="display:<?php if (empty($v_proxy)) { echo 'none';} else {echo 'block';}?> ;" id="proxytable">
97+
<tr>
98+
<td class="vst-text input-label">
99+
<?php print __('Proxy Template');?>
100+
</td>
101+
</tr>
102+
<tr>
103+
<td>
104+
<select class="vst-list" name="v_proxy_template">
105+
<?php
106+
foreach ($proxy_templates as $key => $value) {
107+
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
108+
$svalue = "'".$value."'";
109+
if ((!empty($v_proxy_template)) && ( $value == $v_proxy_template ) || ($svalue == $v_proxy_template)){
110+
echo ' selected' ;
111+
}
112+
if ((empty($v_proxy_template)) && ($value == 'default')){
113+
echo ' selected' ;
114+
}
115+
echo ">".htmlentities($value)."</option>\n";
116+
}
117+
?>
118+
</select>
119+
</td>
120+
</tr>
97121
<tr>
98122
<td class="vst-text input-label">
99123
<?php print __('Proxy Extensions');?>

0 commit comments

Comments
 (0)