From: hickert Date: Tue, 28 Feb 2006 05:20:37 +0000 (+0000) Subject: Added baseselect icon to groups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3f16e2efd365da0c2ffba6dd1de2208e486d1b1;p=gosa.git Added baseselect icon to groups git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2750 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index 143830bc2..e1286d7e1 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -34,7 +34,7 @@ class group extends plugin var $group_dialog= FALSE; var $nagios_group =FALSE; var $sambaGroupType; - + var $dialog; /* attribute list for save action */ var $attributes= array("cn", "description", "gidNumber","memberUid","sambaGroupType","sambaSID"); @@ -201,7 +201,32 @@ class group extends plugin $this->reload(); } - /* Assign templating stuff */ + /* 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()); + } + } + + /* Assign templating stuff */ $smarty= get_smarty(); if ($this->samba3){ $smarty->assign("samba3", "true"); diff --git a/plugins/admin/groups/generic.tpl b/plugins/admin/groups/generic.tpl index eb8646cff..2871c0b4e 100644 --- a/plugins/admin/groups/generic.tpl +++ b/plugins/admin/groups/generic.tpl @@ -23,6 +23,7 @@ +