From: hickert Date: Wed, 7 Apr 2010 14:15:35 +0000 (+0000) Subject: Updated acl Roles X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b74895eb71de9c0941fae0d747d54f287d2ac6fd;p=gosa.git Updated acl Roles -Remove all disSelectLists here git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17525 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc index 76de3e0cf..18b3fce7c 100644 --- a/gosa-core/plugins/admin/acl/class_aclRole.inc +++ b/gosa-core/plugins/admin/acl/class_aclRole.inc @@ -160,7 +160,7 @@ class aclrole extends acl $this->sectionList->setDeleteable(false); $this->sectionList->setEditable(false); $this->sectionList->setWidth("100%"); - $this->sectionList->setHeight("120px"); + $this->sectionList->setHeight("400px"); $this->sectionList->setColspecs(array('200px','*')); $this->sectionList->setHeader(array(_("Section"),_("Description"))); $this->sectionList->setDefaultSortColumn(1); @@ -375,10 +375,14 @@ class aclrole extends acl } if ($this->dialogState == 'create'){ + + + /* Draw list */ $aclList= new divSelectBox("aclList"); $aclList->SetHeight(450); - + $data = $lData = array(); + // Create a map of all used sections, this allows us to simply hide the remove button // if no acl is configured for the given section // e.g. ';all;department/country;users/user; @@ -418,14 +422,15 @@ class aclrole extends acl if($this->acl_is_writeable("gosaAclTemplate") && preg_match("/;".$section."(;|\/)/", $usedList)){ $action.= image('images/lists/trash.png','cat_del_'.$section,_("Delete category ACL")); } - - $field1= array("string" => $dsc, "attach" => "style='width:140px'"); - $field2= array("string" => $summary); - $field3= array("string" => $action, "attach" => "style='border-right:0px;width:50px'"); - $aclList->AddEntry(array($field1, $field2, $field3)); + $data[] = $section; + $lData[] = array('data'=>array($dsc, $summary, $action)); } - $smarty->assign("aclList", $aclList->DrawList()); + + $this->sectionList->setListData($data,$lData); + $this->sectionList->update(); + $smarty->assign("aclList", $this->sectionList->render()); + $smarty->assign("aclType", $this->aclType); $smarty->assign("aclTypes", $this->aclTypes); $smarty->assign("target", $this->target);