From 03764f559b0223ef4f7e278f1c3a52f1598c71e0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 Jan 2006 08:11:30 +0000 Subject: [PATCH] Disable table tab, if edited entry is a terminal template git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2545 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index fc743ce96..c68fd3bbe 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -166,6 +166,20 @@ class printgeneric extends plugin /* Call parent execute */ plugin::execute(); + if(isset($this->parent->by_name['workgeneric'])){ +// echo "workstation"; + }elseif(isset($this->parent->by_name['termgeneric'])){ + if($this->parent->by_object['termgeneric']->cn == "default"){ + $display= $this->show_header(_("Add printer extension"), + _("This is a terminal template, printer tab is disabled."),TRUE,TRUE); + $this->is_account= false; + return $display; + } + }elseif(isset($this->parent->by_name['printgeneric'])){ +// echo "printer"; + } + + $smarty= get_smarty(); $display=""; /* Template management. -- 2.30.2