From 91f3671be4db92adc59209ef364537ff24de24af Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 25 Feb 2016 08:42:33 +0000 Subject: [PATCH] fix [Add] button in ACL and render it as popup, needs fixing of scrollbars shown --- admin/inc/class.admin_acl.inc.php | 21 +++---- admin/templates/default/acl.xet | 5 +- admin/templates/default/app.css | 12 ++-- admin/templates/pixelegg/app.css | 98 ++++++++++++++++++++++++++++++- admin/templates/pixelegg/app.less | 2 +- 5 files changed, 118 insertions(+), 20 deletions(-) diff --git a/admin/inc/class.admin_acl.inc.php b/admin/inc/class.admin_acl.inc.php index f59745f52e..a77fb82a2e 100644 --- a/admin/inc/class.admin_acl.inc.php +++ b/admin/inc/class.admin_acl.inc.php @@ -5,7 +5,7 @@ * @link http://www.egroupware.org * @author Ralf Becker * @package admin - * @copyright (c) 2013 by Ralf Becker + * @copyright (c) 2013-16 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id$ */ @@ -264,7 +264,7 @@ class admin_acl 'location' => 'acl_rights', 'owner' => $query['account_id'], ), array(), true); - foreach($apps as $appname => $rights) + foreach(array_keys($apps) as $appname) { $rows['sel_options']['filter2'][] = array( 'value' => $appname, @@ -283,8 +283,8 @@ class admin_acl * Check if current user has access to ACL setting of a given location * * @param int $account_id numeric account-id - * @param int|string $location=null numeric account-id or "run" - * @param boolean $throw=true if true, throw an exception if no access, instead of just returning false + * @param int|string $location =null numeric account-id or "run" + * @param boolean $throw =true if true, throw an exception if no access, instead of just returning false * @return boolean true if access is granted, false if notification_bo * @throws egw_exception_no_permission */ @@ -330,7 +330,7 @@ class admin_acl * Checks access and throws an exception, if a change is attempted without proper access * * @param string|array $ids "$app:$account:$location" string used as row-id in list - * @param int $rights=null null to delete, or new rights + * @param int $rights =null null to delete, or new rights * @throws egw_exception_no_permission */ public static function ajax_change_acl($ids, $rights=null) @@ -382,10 +382,12 @@ class admin_acl /** * New index page * - * @param array $content + * @param array $_content =null */ - public function index(array $content=null) + public function index(array $_content=null) { + unset($_content); // not used, required by function signature + $tpl = new etemplate_new('admin.acl'); $content = array(); @@ -399,7 +401,6 @@ class admin_acl $GLOBALS['egw_info']['user']['preferences']['admin']['acl_filter']), 'filter2' => !empty($_GET['acl_app']) ? $_GET['acl_app'] : '', 'lettersearch' => false, - 'header_row' => 'admin.acl.add', 'order' => 'acl_appname', 'sort' => 'ASC', 'row_id' => 'id', @@ -418,8 +419,8 @@ class admin_acl 'run' => lang('%1 run rights for applications', $user), ) ); - - $tpl->exec('admin.admin_acl.index', $content, $sel_options); + + $tpl->exec('admin.admin_acl.index', $content, $sel_options, array(), array(), 2); } /** diff --git a/admin/templates/default/acl.xet b/admin/templates/default/acl.xet index 7c818c029c..8c1a7f4b8b 100644 --- a/admin/templates/default/acl.xet +++ b/admin/templates/default/acl.xet @@ -3,7 +3,7 @@