From: hickert Date: Mon, 13 Sep 2010 08:01:19 +0000 (+0000) Subject: Updated network handling for DNS X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=38ce537d4e3685fbda812912c73b74abc0e623f3;p=gosa.git Updated network handling for DNS - The 'Add record' button wasn't visible while neabling dns via JavaScript. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19612 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index f6ddf4f6b..022d92d25 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -947,12 +947,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 02db2394a..16bde90f1 100644 --- a/gosa-plugins/systems/admin/systems/network.tpl +++ b/gosa-plugins/systems/admin/systems/network.tpl @@ -104,35 +104,28 @@
{if $ZoneCnt} - -{render acl=$dnsSetupACL} - {if $DNS_is_account == true} - {if $hide_dns_check_box} - + + {else} + + {/if} + + {else} + + {/if} + {/render} - 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} {if $DNS_is_account == true} @@ -145,7 +138,7 @@ {render acl=$dnsSetupACL} - {html_options values=$ZoneKeys output=$Zones selected=$zoneName} {/render} @@ -155,18 +148,16 @@ {t}TTL{/t} {render acl=$dnsSetupACL} - + {/render}
{t}Dns records{/t} - {if $DNS_is_account == true} {render acl=$dnsSetupACL} {$records} {/render} - {/if}