Merge in 5.20
[civicrm-core.git] / templates / CRM / ACL / Page / ACLBasic.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*}
ebbeaead 10{include file="CRM/ACL/Header.tpl" step=3}
6a488035
TO
11
12{if $action eq 1 or $action eq 2 or $action eq 8}
13<div class="crm-block crm-form-block">
14 {include file="CRM/ACL/Form/ACLBasic.tpl"}
15</div>
16{/if}
17
18<div class="crm-block crm-content-block">
19{if $rows}
20<div id="ltype">
21<p></p>
22 <div class="form-item">
23 {strip}
24 <table>
25 <tr class="columnheader">
26 <th>{ts}Role{/ts}</th>
27 <th>{ts}ACL Type(s){/ts}</th>
28 <th></th>
29 </tr>
30 {foreach from=$rows item=row}
31 <tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
32 <td>{$row.entity}</td>
33 <td>{$row.object_table}</td>
34 <td>{$row.action}</td>
35 </tr>
36 {/foreach}
37 </table>
38 {/strip}
39
40 {if $action ne 1 and $action ne 2}
41 <div class="action-link">
a2c70872 42 <a href="{crmURL q="action=add&reset=1"}" id="newACL"><i class="crm-i fa-plus-circle"></i> {ts}Add ACL{/ts}</a>
6a488035
TO
43 </div>
44 {/if}
45 </div>
46</div>
47{elseif $action ne 1 and $action ne 2 and $action ne 8}
48 <div class="messages status no-popup">
49 <dl>
50 <dt><img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/></dt>
51 {capture assign=crmURL}{crmURL q="action=add&reset=1"}{/capture}
52 <dd>{ts 1=$crmURL}There are no ACLs entered. You can <a href='%1'>add one</a>.{/ts}</dd>
53 </dl>
54 </div>
55{/if}
232624b1 56</div>