Merge pull request #11336 from eileenmcnaughton/live
[civicrm-core.git] / templates / CRM / ACL / Page / ACLBasic.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
8c9251b3 5 | Copyright CiviCRM LLC (c) 2004-2018 |
6a488035
TO
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*}
ebbeaead 26{include file="CRM/ACL/Header.tpl" step=3}
6a488035
TO
27
28{if $action eq 1 or $action eq 2 or $action eq 8}
29<div class="crm-block crm-form-block">
30 {include file="CRM/ACL/Form/ACLBasic.tpl"}
31</div>
32{/if}
33
34<div class="crm-block crm-content-block">
35{if $rows}
36<div id="ltype">
37<p></p>
38 <div class="form-item">
39 {strip}
40 <table>
41 <tr class="columnheader">
42 <th>{ts}Role{/ts}</th>
43 <th>{ts}ACL Type(s){/ts}</th>
44 <th></th>
45 </tr>
46 {foreach from=$rows item=row}
47 <tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
48 <td>{$row.entity}</td>
49 <td>{$row.object_table}</td>
50 <td>{$row.action}</td>
51 </tr>
52 {/foreach}
53 </table>
54 {/strip}
55
56 {if $action ne 1 and $action ne 2}
57 <div class="action-link">
a2c70872 58 <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
59 </div>
60 {/if}
61 </div>
62</div>
63{elseif $action ne 1 and $action ne 2 and $action ne 8}
64 <div class="messages status no-popup">
65 <dl>
66 <dt><img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/></dt>
67 {capture assign=crmURL}{crmURL q="action=add&reset=1"}{/capture}
68 <dd>{ts 1=$crmURL}There are no ACLs entered. You can <a href='%1'>add one</a>.{/ts}</dd>
69 </dl>
70 </div>
71{/if}
232624b1 72</div>