From 8f26b961e093fb6fd2e6df16fff501e478f38191 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 10 Sep 2010 13:08:00 +0000 Subject: [PATCH] Updated DNS selector -Fixed some rendering issues git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19602 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_termDNS.inc | 6 ----- .../systems/admin/systems/network.tpl | 26 +++++-------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index 2e4e3e70a..0c7fb3f42 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -970,12 +970,6 @@ class termDNS extends plugin function generateRecordsList() { $changeStateForRecords = ""; - - if(!$this->DNS_is_account) { - $str = ""; - return(array("str" => $str, "changeStateForRecords"=> "")); - } - $str = ""; foreach($this->dnsEntry['RECORDS'] as $key => $entry){ diff --git a/gosa-plugins/systems/admin/systems/network.tpl b/gosa-plugins/systems/admin/systems/network.tpl index 57155dab1..062daf246 100644 --- a/gosa-plugins/systems/admin/systems/network.tpl +++ b/gosa-plugins/systems/admin/systems/network.tpl @@ -113,35 +113,25 @@ {render acl=$dnsSetupACL} {if $DNS_is_account == true} + {if $hide_dns_check_box} - {else} {/if} - - checked="checked" - onclick=" - $('test2').toggle(); - changeState('zoneName'); - changeState('dNSTTL'); - $('propose_ip').toggle(); - changeState('AddNewRecord'); - {$changeStateForRecords}"/> {else} + "/> {/if} {/render} {t}Enable DNS for this device{/t} - {image path="images/lists/reload.png" action="reloadThisDNSStuff"} - {if $DNS_is_account == true}
{else} @@ -169,11 +159,9 @@
{t}DNS records{/t} - {if $DNS_is_account == true} {render acl=$dnsSetupACL} {$records} {/render} - {/if}
-- 2.30.2