Skip to content

Commit ff8ef79

Browse files
authored
Adding DNS template listbox to user template edit_dns
1 parent fc187b3 commit ff8ef79

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

web/templates/user/edit_dns.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,27 @@
6161
<?php print __('IP Address');?>
6262
</td>
6363
</tr>
64+
<tr>
65+
<td class="vst-text input-label">
66+
<?php print __('Template') . "<span class='optional'>" . strtoupper($_SESSION['DNS_SYSTEM']) . "</span>";?>
67+
</td>
68+
</tr>
69+
<tr>
70+
<td>
71+
<select class="vst-list" name="v_template">
72+
<?php
73+
foreach ($templates as $key => $value) {
74+
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
75+
$svalue = "'".$value."'";
76+
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
77+
echo ' selected' ;
78+
}
79+
echo ">".htmlentities($value)."</option>\n";
80+
}
81+
?>
82+
</select>
83+
</td>
84+
</tr>
6485
<tr>
6586
<td>
6687
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">

0 commit comments

Comments
 (0)