From f7bdecf9a6ffdbe330cf5921365563a32aaf5703 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Jun 2006 10:25:17 +0000 Subject: [PATCH] Updated ntp selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3856 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/class_termgroup.inc | 10 +++++++++- plugins/admin/ogroups/termgroup.tpl | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/plugins/admin/ogroups/class_termgroup.inc b/plugins/admin/ogroups/class_termgroup.inc index fab217ef8..3396f8d4a 100644 --- a/plugins/admin/ogroups/class_termgroup.inc +++ b/plugins/admin/ogroups/class_termgroup.inc @@ -212,7 +212,15 @@ class termgroup extends plugin $smarty->assign("modes", $this->modes); $smarty->assign("actions", array("wake" => _("Wake up"), "halt" => _("Switch off"), "reboot" => _("Reboot"))); $smarty->assign("actionACL", chkacl($this->acl, 'action')); - $smarty->assign("gotoNtpServers",$this->gotoNtpServers); + + $tmp = array(); + foreach($this->gotoNtpServers as $server){ + if(!in_array($server,$this->gotoNtpServer)){ + $tmp[$server] = $server; + } + } + + $smarty->assign("gotoNtpServers",$tmp); $smarty->assign("syslogservers", $this->config->data['SERVERS']['SYSLOG']); $smarty->assign("gotoSyslogServer_select", $this->gotoSyslogServer); diff --git a/plugins/admin/ogroups/termgroup.tpl b/plugins/admin/ogroups/termgroup.tpl index 8d24d6c91..009d9a51f 100644 --- a/plugins/admin/ogroups/termgroup.tpl +++ b/plugins/admin/ogroups/termgroup.tpl @@ -21,9 +21,9 @@ {html_options output=$gotoNtpServers values=$gotoNtpServers} + {if ($inheritTimeServer) || (!$gotoNtpServers)} disabled {/if}> + {if ($inheritTimeServer) || (!$gotoNtpServer_select)} disabled {/if} > -- 2.30.2