From 6bff16d5d14af0a00be5ac34c81f523db672e383 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 25 Apr 2006 07:00:18 +0000 Subject: [PATCH] Added gotoMode to server generic tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3102 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servGeneric.inc | 12 ++++++++++-- plugins/admin/systems/server.tpl | 12 +++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index f685d2703..0c43263ff 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -19,15 +19,23 @@ class servgeneric extends plugin var $orig_dn= ""; /* attribute list for save action */ - var $attributes= array("cn", "description"); + var $attributes= array("cn", "description","gotoMode"); var $objectclasses= array("top", "GOhard", "goServer"); + var $gotoMode= "locked"; + var $netConfigDNS; + var $modes = array(); function servgeneric ($config, $dn= NULL) { plugin::plugin ($config, $dn); + $this->modes["active"]= _("Activated"); + $this->modes["locked"]= _("Locked"); + $this->modes["memcheck"]= _("Memory test"); + $this->modes["sysinfo"]= _("System analysis"); + /* Set base */ if ($this->dn == "new"){ $ui= get_userinfo(); @@ -142,9 +150,9 @@ class servgeneric extends plugin $smarty->assign("actions", array("wake" => _("Wake up"))); } - /* Show main page */ $smarty->assign("netconfig", $this->netConfigDNS->execute()); + $smarty->assign("modes", $this->modes); return($smarty->fetch (get_template_path('server.tpl', TRUE))); } diff --git a/plugins/admin/systems/server.tpl b/plugins/admin/systems/server.tpl index f0521c058..6230d8473 100644 --- a/plugins/admin/systems/server.tpl +++ b/plugins/admin/systems/server.tpl @@ -6,9 +6,6 @@ {$must} - -   - {$must} @@ -21,6 +18,15 @@ + + + + + -- 2.30.2
{t}Mode{/t} + +