Allow text to be translated and fix URL paths in calls to docURL() function.
[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=docUrlText}{ts}Access Control Documentation{/ts}{/capture}
11 {capture assign=docLink}{docURL page='user/initial-set-up/permissions-and-access-control/' text=$docUrlText}{/capture}
12
13 <div class="help">
14 <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>
15 </div>
16
17 {php}
18 $currentStep = $this->get_template_vars('step');
19 $wizard = array(
20 'style' => array(),
21 'currentStepNumber' => $currentStep,
22 'steps' => array(
23 array(
24 'title' => ts('Manage Roles'),
25 'link' => CRM_Utils_System::url('civicrm/admin/options/acl_role', 'reset=1'),
26 ),
27 array(
28 'title' => ts('Assign Users'),
29 'link' => CRM_Utils_System::url('civicrm/acl/entityrole', 'reset=1'),
30 ),
31 array(
32 'title' => ts('Manage ACLs'),
33 'link' => CRM_Utils_System::url('civicrm/acl', 'reset=1'),
34 ),
35 ),
36 );
37 foreach ($wizard['steps'] as $num => &$step) {
38 $step['step'] = $step['valid'] = $step['stepNumber'] = $num + 1;
39 if ($step['stepNumber'] == $currentStep) {
40 $step['link'] = NULL;
41 }
42 }
43 $this->assign('wizard', $wizard);
44 {/php}
45
46 {include file="CRM/common/WizardHeader.tpl"}