Merge pull request #15938 from civicrm/5.20
[civicrm-core.git] / templates / CRM / ACL / Header.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {capture assign=docLink}{docURL page='user/initial-set-up/permissions-and-access-control/' text='Access Control Documentation'}{/capture}
11
12 <div class="help">
13 <p>{ts 1=$docLink}ACLs allow you to control access to CiviCRM data. An ACL consists of an <strong>Operation</strong> (e.g. 'View' or 'Edit'), a <strong>set of data</strong> that the operation can be performed on (e.g. a group of contacts), and a <strong>Role</strong> that has permission to do this operation. Refer to the %1 for more info.{/ts}</p>
14 </div>
15
16 {php}
17 $currentStep = $this->get_template_vars('step');
18 $wizard = array(
19 'style' => array(),
20 'currentStepNumber' => $currentStep,
21 'steps' => array(
22 array(
23 'title' => ts('Manage Roles'),
24 'link' => CRM_Utils_System::url('civicrm/admin/options/acl_role', 'reset=1'),
25 ),
26 array(
27 'title' => ts('Assign Users'),
28 'link' => CRM_Utils_System::url('civicrm/acl/entityrole', 'reset=1'),
29 ),
30 array(
31 'title' => ts('Manage ACLs'),
32 'link' => CRM_Utils_System::url('civicrm/acl', 'reset=1'),
33 ),
34 ),
35 );
36 foreach ($wizard['steps'] as $num => &$step) {
37 $step['step'] = $step['valid'] = $step['stepNumber'] = $num + 1;
38 if ($step['stepNumber'] == $currentStep) {
39 $step['link'] = NULL;
40 }
41 }
42 $this->assign('wizard', $wizard);
43 {/php}
44
45 {include file="CRM/common/WizardHeader.tpl"}