From: hickert Date: Tue, 4 Sep 2007 06:32:20 +0000 (+0000) Subject: Updated dns/dhcp client setup (termDNS). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=44b1bd8f852afe3bcd6781907948b1c08e9c704f;p=gosa.git Updated dns/dhcp client setup (termDNS). Grey out dhcp and dns options, if there is currently no such service configured. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7203 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index da1d331b6..c1290e572 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -247,7 +247,7 @@ class termDNS extends plugin $smarty->assign("dhcp_is_Account",$this->dhcp_is_Account); $smarty->assign("dhcpParentNode", $this->dhcpParentNode); $smarty->assign("dhcpParentNodes",$this->dhcpParentNodes); - + $smarty->assign("dhcpParentNodeCnt",count($this->dhcpParentNodes)); /* There is no dns available */ @@ -311,6 +311,7 @@ class termDNS extends plugin $smarty->assign("DNSAccount",$this->DNS_is_account); $smarty->assign("Zones",$this->Zones); + $smarty->assign("ZoneCnt",count($this->Zones)); $smarty->assign("ZoneKeys",($this->Zones)); $smarty->assign("IPisMust",(($this->IPisMust)||($this->DNS_is_account))); diff --git a/plugins/admin/systems/network.tpl b/plugins/admin/systems/network.tpl index 035629fbf..cb6a7af4c 100644 --- a/plugins/admin/systems/network.tpl +++ b/plugins/admin/systems/network.tpl @@ -23,6 +23,7 @@ + {if $dhcpParentNodeCnt} + {else} + + + + {/if} {if $dhcp_is_Account} @@ -54,20 +65,22 @@ {if $DNS_is_account==true}
+ + {t}Enable DHCP for this device{/t} +
+ {t}No dhcp service present in your ldap database, you will have to setup the dhcp service first.{/t} +
  - + {else} - onclick="toggle('test2'); - changeState('zoneName'); - changeState('dNSTTL'); - changeState('AddNewRecord'); - "/> + {/if} {t}Enable DNS for this device{/t} @@ -98,6 +111,13 @@
+ {else} + + {t}Enable DNS for this device{/t} +
+ {t}No dns service present in your ldap database, you will have to setup the dns service first.{/t} + {/if} + {/if}