From 3c0b15022e283bd561aebc5dea70a7ed2bfc4dc0 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 19 Feb 2008 12:19:55 +0000 Subject: [PATCH] Added description for terminals git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8952 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_terminalGeneric.inc | 6 +++++- .../goto/admin/systems/goto/class_workstationGeneric.inc | 1 + gosa-plugins/goto/admin/systems/goto/terminal.tpl | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc index 51616dffa..e51022472 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc @@ -28,9 +28,11 @@ class termgeneric extends plugin var $ghSoundAdapter= "-"; var $gotoLastUser= "-"; var $netConfigDNS; + /* Needed values and lists */ var $base= ""; var $cn= ""; + var $description= ""; var $orig_dn= ""; var $inheritTimeServer = true; @@ -43,7 +45,7 @@ class termgeneric extends plugin var $attributes= array("gotoMode", "gotoTerminalPath", "gotoSwapServer", "gotoSyslogServer", "gotoNtpServer", "gotoFloppyEnable", "gotoCdromEnable", "cn", "gotoSndModule", - "ghCpuType", "ghMemSize","ghUsbSupport", + "ghCpuType", "ghMemSize","ghUsbSupport", "description", "ghGfxAdapter", "ghSoundAdapter", "gotoLastUser"); var $objectclasses= array("top", "gotoTerminal", "GOhard"); @@ -233,6 +235,7 @@ class termgeneric extends plugin } $smarty->assign("cn", $this->cn); + $smarty->assign("description", $this->description); $smarty->assign("staticAddress", ""); $smarty->assign("bases", $this->get_allowed_bases()); @@ -589,6 +592,7 @@ class termgeneric extends plugin "gotoNtpServer" => _("Ntp server settings"), "base" => _("Base"), "cn" => _("Name"), + "description" => _("Description"), "gotoRootPasswd" => _("Root password"), "FAIstate" => _("Action flag")) )); diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index 4107c747b..0e264ab6c 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -287,6 +287,7 @@ class workgeneric extends plugin } $smarty->assign("cn", $this->cn); + $smarty->assign("description", $this->description); $smarty->assign("l", $this->l); $smarty->assign("bases", $this->get_allowed_bases()); $smarty->assign("staticAddress", ""); diff --git a/gosa-plugins/goto/admin/systems/goto/terminal.tpl b/gosa-plugins/goto/admin/systems/goto/terminal.tpl index dc088f867..06749efd6 100644 --- a/gosa-plugins/goto/admin/systems/goto/terminal.tpl +++ b/gosa-plugins/goto/admin/systems/goto/terminal.tpl @@ -15,6 +15,14 @@ {/if} + + + +{render acl=$descriptionACL} + +{/render} + + {$must} -- 2.30.2