From 9d919619c2ed03eea4d84a5909e8ba2a5ddf5a4c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Nov 2005 09:45:11 +0000 Subject: [PATCH] Check for Nagios and uebernahme gruppe before showing these options in group dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1868 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupGeneric.inc | 12 ++++++++++++ plugins/admin/groups/generic.tpl | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index 2617a38f3..dbb3d7890 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -204,6 +204,18 @@ class group extends plugin $smarty->assign("samba3", ""); } + if(search_config($this->config->data['MENU'], "nagiosaccount", "CLASS")){ + $smarty->assign("nagios",true); + }else{ + $smarty->assign("nagios",false); + } + + if(search_config($this->config->data['MENU'], "phoneAccount", "CLASS")){ + $smarty->assign("pickupGroup",true); + }else{ + $smarty->assign("pickupGroup",false); + } + /* Manage object add dialog */ if ($this->group_dialog){ diff --git a/plugins/admin/groups/generic.tpl b/plugins/admin/groups/generic.tpl index 136a54615..eb8646cff 100644 --- a/plugins/admin/groups/generic.tpl +++ b/plugins/admin/groups/generic.tpl @@ -55,6 +55,7 @@ {/if} + {if $pickupGroup == "true"}
@@ -66,6 +67,8 @@ {t}Members are in a phone pickup group{/t} + {/if} + {if $nagios == "true"}
@@ -77,6 +80,7 @@ {t}Members are in a nagios group{/t} + {/if} -- 2.30.2