{* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing Wordpress Access Control *}

{ts}Use this form to Grant access to CiviCRM components and other CiviCRM permissions to WordPress roles.{/ts}

{ts}NOTE: Super Admin and Administrator roles will have all permissions in CiviCRM.{/ts}

{include file="CRM/common/formButtons.tpl" location="top"}
{assign var="i" value=1} {foreach from=$roles key=role_name item=role_value } {assign var="i" value=$i+1} {/foreach}
{assign var="j" value=0} {foreach from=$rolePerms.$role_name key=name item=value } {if $j mod 2 eq 1} {else} {/if} {assign var="j" value=$j+1} {/foreach}
  {$role_value}
{if $i eq 1} {$form.$role_name.$name.label} {if $permDesc.$name}
{$permDesc.$name} {/if} {/if}
{$form.$role_name.$name.html}
{include file="CRM/common/formButtons.tpl" location="bottom"}