Code

Added base select icon
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Feb 2006 05:23:54 +0000 (05:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Feb 2006 05:23:54 +0000 (05:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2752 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/ogroups/class_ogroup.inc
plugins/admin/ogroups/generic.tpl

index bfdd15e7d193f4affbbecc40f33909a8e1e19e7c..169e8293917844137a821ab8697e4bc1f9001899 100644 (file)
@@ -176,6 +176,31 @@ class ogroup extends plugin
     /* Load templating engine */
     $smarty= get_smarty();
 
+    /* Base select dialog */
+    $once = true;
+    foreach($_POST as $name => $value){
+      if(preg_match("/^chooseBase/",$name) && $once){
+        $once = false;
+        $this->dialog = new baseSelectDialog($this->config);
+        $this->dialog->setCurrentBase($this->base);
+      }
+    }
+
+    /* Dialog handling */
+    if(is_object($this->dialog)){
+      /* Must be called before save_object */
+      $this->dialog->save_object();
+
+      if($this->dialog->isClosed()){
+        $this->dialog = false;
+      }elseif($this->dialog->isSelected()){
+        $this->base = $this->dialog->isSelected();
+        $this->dialog= false;
+      }else{
+        return($this->dialog->execute());
+      }
+    }
+
     /* Add objects? */
     if (isset($_POST["edit_membership"])){
       $this->group_dialog= TRUE;
index 020b18f81a9686a56f64bafba2693ebecb670dae..2d79b9620555d60100d1086b509e0659c8789372 100644 (file)
@@ -23,6 +23,7 @@
       <select size="1" id="base" name="base" {$baseACL} title="{t}Choose subtree to place group in{/t}">
        {html_options options=$bases selected=$base_select}
       </select>
+               <input type="image" name="chooseBase" src="images/folder.png" class="center">
      </td>
     </tr>
    </table>