diff --git a/CRM/ACL/Page/ACL.php b/CRM/ACL/Page/ACL.php index 7816abcfe0da..62ce735f4e95 100644 --- a/CRM/ACL/Page/ACL.php +++ b/CRM/ACL/Page/ACL.php @@ -125,7 +125,7 @@ public function browse() { ] + CRM_Event_PseudoConstant::event(); while ($dao->fetch()) { - $acl[$dao->id] = []; + $acl[$dao->id] = ['class' => '']; $acl[$dao->id]['name'] = $dao->name; $acl[$dao->id]['operation'] = $dao->operation; $acl[$dao->id]['entity_id'] = $dao->entity_id; diff --git a/templates/CRM/ACL/Header.tpl b/templates/CRM/ACL/Header.tpl index d1d5e4e7f891..fa94c0ae3a6c 100644 --- a/templates/CRM/ACL/Header.tpl +++ b/templates/CRM/ACL/Header.tpl @@ -16,24 +16,30 @@ {php} $currentStep = $this->get_template_vars('step'); - $wizard = array( - 'style' => array(), + $wizard = [ + 'style' => ['barClass' => '', 'showTitle' => FALSE], 'currentStepNumber' => $currentStep, - 'steps' => array( - array( + 'steps' => [ + [ 'title' => ts('Manage Roles'), 'link' => CRM_Utils_System::url('civicrm/admin/options/acl_role', 'reset=1'), - ), - array( + 'collapsed' => FALSE, + 'name' => '', + ], + [ 'title' => ts('Assign Users'), 'link' => CRM_Utils_System::url('civicrm/acl/entityrole', 'reset=1'), - ), - array( + 'collapsed' => FALSE, + 'name' => '', + ], + [ 'title' => ts('Manage ACLs'), 'link' => CRM_Utils_System::url('civicrm/acl', 'reset=1'), - ), - ), - ); + 'collapsed' => FALSE, + 'name' => '', + ], + ], + ]; foreach ($wizard['steps'] as $num => &$step) { $step['step'] = $step['valid'] = $step['stepNumber'] = $num + 1; if ($step['stepNumber'] == $currentStep) { diff --git a/templates/CRM/ACL/Page/ACL.tpl b/templates/CRM/ACL/Page/ACL.tpl index 302c97a06cd0..d1e07327ce0a 100644 --- a/templates/CRM/ACL/Page/ACL.tpl +++ b/templates/CRM/ACL/Page/ACL.tpl @@ -35,7 +35,7 @@
{foreach from=$rows item=row key=aclID} -