commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / ACL / Form / WordPress / Permissions.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {* this template is used for adding/editing Wordpress Access Control *}
27 <div id="help">
28 <p>{ts}Use this form to Grant access to CiviCRM components and other CiviCRM permissions to WordPress roles.{/ts}<br /><br />
29 {ts}<strong>NOTE: Super Admin</strong> and <strong>Administrator</strong> roles will have all permissions in CiviCRM.{/ts}
30 </p>
31 </div>
32 <div class="crm-block crm-form-block crm-export-form-block">
33 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
34 <table>
35 <tr>
36 {assign var="i" value=1}
37 {foreach from=$roles key=role_name item=role_value }
38 <td style="padding:0;">
39 <table border="0" cellpadding="0" cellspacing="0">
40 <tr>
41 <td class="label">&nbsp;</td>
42 <td align="center"><b>{$role_value}</b><br /></td>
43 </tr>
44 {assign var="j" value=0}
45 {foreach from=$rolePerms.$role_name key=name item=value }
46 {if $j mod 2 eq 1}
47 <tr style="background-color: #E6E6DC;">
48 {else}
49 <tr style="background-color: #FFFFFF;">
50 {/if}
51 <td style="height:3em;">
52 {if $i eq 1}
53 {$form.$role_name.$name.label}
54 {if $permDesc.$name}
55 <br/><span class="description">{$permDesc.$name}</span>
56 {/if}
57 {/if}
58 </td>
59 <td align="center">{$form.$role_name.$name.html}<br /></td>
60 </tr>
61 {assign var="j" value=$j+1}
62 {/foreach}
63 </table>
64 </td>
65 {assign var="i" value=$i+1}
66 {/foreach}
67 </tr>
68 </table>
69
70 <div class="crm-submit-buttons">
71 {include file="CRM/common/formButtons.tpl" location="bottom"}
72 </div>
73
74 </div>