(NFC) (dev/core#878) Simplify copyright header (templates/*)
[civicrm-core.git] / templates / CRM / ACL / Form / WordPress / Permissions.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
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 |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
5f5b1dcc 10{* this template is used for adding/editing WordPress Access Control *}
f6eedce7 11<div class="help">
5f5b1dcc
CW
12 <p>{ts}Use this form to Grant access to CiviCRM components and other CiviCRM permissions to WordPress roles.{/ts}</p>
13 <p>{ts}<strong>NOTE: Super Admin</strong> and <strong>Administrator</strong> roles will have all permissions in CiviCRM.{/ts}</p>
6a488035 14</div>
5f5b1dcc 15
6a488035 16<div class="crm-block crm-form-block crm-export-form-block">
5f5b1dcc
CW
17
18 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
19
20 <table>
21
22 <tr>
23 <td class="label">&nbsp;</td>
24 {assign var="num" value=0}
25 {foreach from=$roles key=role_name item=role_value}
26 <td align="center"><strong>{$role_value}</strong></td>
27 {assign var="num" value=$num+1}
6a488035 28 {/foreach}
5f5b1dcc 29 </tr>
6a488035 30
5f5b1dcc
CW
31 {assign var="x" value=0}
32 {foreach from=$table key=perm_name item=row}
33 {if $x mod 2 eq 1}
34 <tr style="background-color: #E6E6DC;">
35 {else}
36 <tr style="background-color: #FFFFFF;">
37 {/if}
38
39 <td style="height: 2.6em;">
40 {$row.label}
41 {if $row.desc}
42 <br/><span class="description">{$row.desc}</span>
43 {/if}
44 </td>
45
46 {foreach from=$row.roles key=index item=role_name}
47 <td align="center" style="padding-top: 0.6em;">
48 {$form.$role_name.$perm_name.html}
49 </td>
50 {/foreach}
51
52 </tr>
53 {assign var="x" value=$x+1}
54 {/foreach}
55
56 </table>
57
58 <div class="crm-submit-buttons">
59 {include file="CRM/common/formButtons.tpl" location="bottom"}
60 </div>
6a488035 61
232624b1 62</div>