Code

Updated table summary
[gosa.git] / gosa-core / plugins / admin / acl / tabs_acl_role.inc
index ce8f984c64181c0c10c8197f966351469fd468e7..28be2338567e20491201b33fb37ac71e510fe6ae 100644 (file)
@@ -35,7 +35,7 @@ class aclroletab extends tabs
 
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
-    $new_dn= 'cn='.$baseobject->cn.",".get_ou('aclroleou').$baseobject->base;
+    $new_dn= 'cn='.$baseobject->cn.",".get_ou('aclRoleRDN').$baseobject->base;
 
     if ($this->dn != $new_dn){
 
@@ -62,16 +62,18 @@ class aclroletab extends tabs
   function execute()
   {
     $display= tabs::execute();
-    if(!$this->by_object['aclrole']->dialog){
+    if($this->read_only){
+      $display.= "<div class='plugin-actions'>";
+      $display.= "  <button type=submit name=\"edit_cancel\">".msgPool::cancelButton()."</button>\n";
+      $display.= "</div>";
+    }elseif(!$this->by_object['aclrole']->dialog){
       $display.= "<p style=\"text-align:right\">\n";
-      $display.= "  <input type=submit name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
-      $display.= "  &nbsp;\n";
-      $display.= "  <input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
+      $display.= "  <button type=submit name=\"edit_finish\">".msgPool::okButton()."</button>\n";
+      $display.= "  <button type=submit name=\"edit_cancel\">".msgPool::cancelButton()."</button>\n";
       $display.= "</p>";
     }
     return($display);
   }
-
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>