From 119a88ad1e6b036773e384794f48d686cf0e28d9 Mon Sep 17 00:00:00 2001 From: Mathieu Lu Date: Wed, 18 Dec 2024 21:47:36 -0500 Subject: [PATCH] WordPress Permissions: code cleanup, use cycle and odd-row css classes --- .../CRM/ACL/Form/WordPress/Permissions.tpl | 37 +++++++------------ 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/templates/CRM/ACL/Form/WordPress/Permissions.tpl b/templates/CRM/ACL/Form/WordPress/Permissions.tpl index d094105695a0..8c6eebe249cc 100644 --- a/templates/CRM/ACL/Form/WordPress/Permissions.tpl +++ b/templates/CRM/ACL/Form/WordPress/Permissions.tpl @@ -12,42 +12,33 @@

{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}

-
- +
+
{assign var="num" value=0} {foreach from=$roles key=role_name item=role_value} - + {assign var="num" value=$num+1} {/foreach} - {assign var="x" value=0} {foreach from=$table key=perm_name item=row} - {if $x mod 2 eq 1} - - {else} - - {/if} - - - - {foreach from=$row.roles key=index item=role_name} - + - {/foreach} - + {foreach from=$row.roles key=index item=role_name} + + {/foreach} - {assign var="x" value=$x+1} {/foreach}
 {$role_value}{$role_value}
- {$row.label} - {if !empty($row.desc)} -
{$row.desc} - {/if} -
- {$form.$role_name.$perm_name.html} +
+ {$row.label} + {if !empty($row.desc)} +
{$row.desc} + {/if}
+ {$form.$role_name.$perm_name.html} +