From 16533cefd6f1d23805b75e51cca54092e7ce92a9 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 22 May 2006 07:59:23 +0000 Subject: [PATCH] Added baseslecdt dialog // ACLs for base git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3484 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../applications/class_applicationGeneric.inc | 26 +++++++++++++++++++ plugins/admin/applications/generic.tpl | 8 +++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index e20dcc26e..bf90cea8c 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -135,6 +135,31 @@ class application extends plugin $smarty->assign("namemode", "readonly"); $smarty->assign("selectmode", "disabled"); } + + /* 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()); + } + } /* Get random number for pictures */ srand((double)microtime()*1000000); @@ -145,6 +170,7 @@ class application extends plugin $smarty->assign($val, $this->$val); $smarty->assign($val."ACL", chkacl($this->acl, $val)); } + $smarty->assign("baseACL", chkacl($this->acl,"base")); /* Checkboxes */ foreach (array("G" => "exec_for_groupmembers", "O" => "overwrite_config", diff --git a/plugins/admin/applications/generic.tpl b/plugins/admin/applications/generic.tpl index f0e3eef4a..7c4128216 100644 --- a/plugins/admin/applications/generic.tpl +++ b/plugins/admin/applications/generic.tpl @@ -32,9 +32,15 @@ + {if $baseACL == "" && !$isReleaseApplikation} + + {else} + + {/if} + -- 2.30.2