From: hickert Date: Tue, 28 Feb 2006 05:23:54 +0000 (+0000) Subject: Added base select icon X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8e85d1e7280831ff3ce4ed734894c1317cc2df7;p=gosa.git Added base select icon git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2752 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/class_ogroup.inc b/plugins/admin/ogroups/class_ogroup.inc index bfdd15e7d..169e82939 100644 --- a/plugins/admin/ogroups/class_ogroup.inc +++ b/plugins/admin/ogroups/class_ogroup.inc @@ -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; diff --git a/plugins/admin/ogroups/generic.tpl b/plugins/admin/ogroups/generic.tpl index 020b18f81..2d79b9620 100644 --- a/plugins/admin/ogroups/generic.tpl +++ b/plugins/admin/ogroups/generic.tpl @@ -23,6 +23,7 @@ +