Skip to content

Commit b395bb5

Browse files
author
Kristan Kenney
committed
Show DNS template by default on Add DNS Domain screen
1 parent 892c00c commit b395bb5

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

web/templates/admin/add_dns.html

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,27 @@
8080
<input type="text" size="20" class="vst-input vst-list-editor" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
8181
</td>
8282
</tr>
83+
<tr>
84+
<td class="vst-text input-label">
85+
<?php print _('Template') . "<span class='optional'>" . strtoupper($_SESSION['DNS_SYSTEM']) . "</span>";?>
86+
</td>
87+
</tr>
88+
<tr>
89+
<td>
90+
<select class="vst-list" name="v_template">
91+
<?php
92+
foreach ($templates as $key => $value) {
93+
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
94+
$svalue = "'".$value."'";
95+
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
96+
echo ' selected' ;
97+
}
98+
echo ">".htmlentities($value)."</option>\n";
99+
}
100+
?>
101+
</select>
102+
</td>
103+
</tr>
83104
<tr>
84105
<td class="vst-text input-label step-top">
85106
<a href="javascript:elementHideShow('advtable');" class="vst-advanced"><?php print _('Advanced options');?>&nbsp;<i class="fas fa-arrow-circle-right"></i></a>
@@ -88,27 +109,6 @@
88109
<tr>
89110
<td class="vst-text step-top">
90111
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
91-
<tr>
92-
<td class="vst-text input-label">
93-
<?php print _('Template') . "<span class='optional'>" . strtoupper($_SESSION['DNS_SYSTEM']) . "</span>";?>
94-
</td>
95-
</tr>
96-
<tr>
97-
<td>
98-
<select class="vst-list" name="v_template">
99-
<?php
100-
foreach ($templates as $key => $value) {
101-
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
102-
$svalue = "'".$value."'";
103-
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
104-
echo ' selected' ;
105-
}
106-
echo ">".htmlentities($value)."</option>\n";
107-
}
108-
?>
109-
</select>
110-
</td>
111-
</tr>
112112
<tr>
113113
<td class="vst-text input-label">
114114
<?php print _('Expiration Date');?> <span class="optional">(<?=_('YYYY-MM-DD');?>)</span>

0 commit comments

Comments
 (0)