From a7acb34a6d20349b1a91f5b7b0f833e0f146484d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Sep 2007 06:34:08 +0000 Subject: [PATCH] Updated hhcp and dns client setup. Grey out not available options. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7204 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_termDNS.inc | 3 +++ plugins/admin/systems/network.tpl | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 7b31ebf07..93f850f17 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -256,6 +256,8 @@ 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 */ @@ -313,6 +315,7 @@ class termDNS extends plugin /* Assign all needed vars */ $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 ec5d17c93..9527e32dd 100644 --- a/plugins/admin/systems/network.tpl +++ b/plugins/admin/systems/network.tpl @@ -29,6 +29,7 @@ + {if $dhcpParentNodeCnt} + {else} + + + + {/if} {if $dhcp_is_Account} @@ -114,6 +125,13 @@
+ + {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} + + {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} -- 2.30.2