Code

Check for Nagios and uebernahme gruppe before showing these options
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Nov 2005 09:45:11 +0000 (09:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Nov 2005 09:45:11 +0000 (09:45 +0000)
  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
plugins/admin/groups/generic.tpl

index 2617a38f35c1e02c2cb3b6ce68823aa411b724fb..dbb3d78900cde347f81ee9f1d0ad610d192e4583 100644 (file)
@@ -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){
 
index 136a54615b7dfcba2b275a5fd7a88c27fe3e606b..eb8646cfff3d0a814d71666b855c89d198b20120 100644 (file)
@@ -55,6 +55,7 @@
      </td>
     </tr>
     {/if}
+       {if $pickupGroup == "true"}
     <tr>
       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
     </tr>
@@ -66,6 +67,8 @@
       <input type=checkbox name="fon_group" value="1" {$fon_group} {$fon_groupACL}>{t}Members are in a phone pickup group{/t}
      </td>
     </tr>
+       {/if}
+       {if $nagios == "true"}
     <tr>
       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
     </tr>
@@ -77,6 +80,7 @@
       <input type=checkbox name="nagios_group" value="1" {$nagios_group} {$nagios_groupACL}>{t}Members are in a nagios group{/t}
      </td>
     </tr>
+       {/if}
    </table>
 
   </td>