Skip to content

Commit 336e2a7

Browse files
author
Kristan Kenney
committed
Hide DNS fields if no DNS server is present
1 parent 7a0b661 commit 336e2a7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

web/templates/admin/add_package.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@
298298
<img name="unlim-bandwidth" class="unlim-trigger" src="/images/unlim.png" />
299299
</td>
300300
</tr>
301+
<?php if ((isset($_SESSION['DNS_SYSTEM'])) && (!empty($_SESSION['DNS_SYSTEM']))) {?>
301302
<tr>
302303
<td class="vst-text input-label">
303304
<?php print __('Name servers');?>
@@ -368,6 +369,7 @@
368369
<span class="add-ns-button additional-control add"><?=__('Add one more Name Server')?></span>
369370
</td>
370371
</tr>
372+
<?php } ?>
371373
</table>
372374
<table class="data-col2">
373375
</table>

web/templates/admin/edit_package.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@
295295
<img name="unlim-bandwidth" class="unlim-trigger" src="/images/unlim.png" />
296296
</td>
297297
</tr>
298+
<?php if ((isset($_SESSION['DNS_SYSTEM'])) && (!empty($_SESSION['DNS_SYSTEM']))) {?>
298299
<tr>
299300
<td class="vst-text input-label">
300301
<?php print __('Name Servers');?>
@@ -367,7 +368,7 @@
367368
<span class="add-ns-button additional-control add"><?=__('Add one more Name Server')?></span>
368369
</td>
369370
</tr>
370-
371+
<?php } ?>
371372
</table>
372373
<table class="data-col2">
373374
</table>

web/templates/admin/edit_user.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
</select>
179179
</td>
180180
</tr>
181+
<?php if ((isset($_SESSION['DNS_SYSTEM'])) && (!empty($_SESSION['DNS_SYSTEM']))) {?>
181182
<tr>
182183
<td class="vst-text input-label">
183184
<?php print __('Default Name Servers');?>
@@ -249,8 +250,7 @@
249250
<span class="add-ns-button additional-control add"><?=__('Add one more Name Server')?></span>
250251
</td>
251252
</tr>
252-
253-
253+
<?php } ?>
254254
</table>
255255
<table class="data-col2">
256256
</table>

0 commit comments

Comments
 (0)