Code

Search CYRUSUNIXSTYLE in current location and in main
[gosa.git] / plugins / personal / nagios / main.inc
index 3eb06ca65a5fdc21cd3afe548c3eac9e46b7b3f1..e707ebfd3c8bdae4f9cfa369f4f00cae1caaaf07 100644 (file)
@@ -57,10 +57,10 @@ if (!$remove_lock){
   /* Adjust acl's to mode */
   if (isset($_SESSION['edit'])){
     $acl= get_permissions ($ui->dn, $ui->subtreeACL);
-    $nagiosAccount->acl= get_module_permission($acl, "nagios", $ui->dn);
+    $nagiosAccount->acl= get_module_permission($acl, "nagiosAccount", $ui->dn);
   } else {
     $acl= get_permissions ($ui->dn, $ui->subtreeACL);
-    $editacl= get_module_permission($acl, "nagios", $ui->dn);
+    $editacl= get_module_permission($acl, "nagiosAccount", $ui->dn);
     $nagiosAccount->acl= "#none#";
   }
 
@@ -96,12 +96,12 @@ if (!$remove_lock){
 
   $info= "";
   /* Show page footer depending on the mode */
-  if (!$nagiosAccount->forward_dialog && $nagiosAccount->is_account){
+  if ($nagiosAccount->is_account){
     $display.= "<p class=\"plugbottom\">";
 
     /* Are we in edit mode? */
     if (isset($_SESSION['edit'])){
-      $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+      $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
       $display.= "&nbsp;";
       $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
       $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').