actions_overview.smarty
1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<h2>{i18n}Actions Overview{/i18n}</h2>
<p class="descriptiveText">{i18n}In addition to restricting permissions, it is also
possible to block certain <strong>actions</strong> at any given point. Actions
which are not blocked are still controlled by the usual permissions.{/i18n}</p>
<p><a class="ktAction ktActionDescribed ktEdit" href="{addQS context=$context}action=editactions{/addQS}">{i18n}Edit Actions{/i18n}</a>
<a href="{addQS context=$context}action=editactions{/addQS}">{i18n}Edit Actions{/i18n}</a></p>
<div class="action_overview_scroll">
<table class="kt_collection narrow" width="50" cellspacing="0">
<thead>
<th>{i18n}State{/i18n}</th>
{foreach from=$actions item=oAction}
{if ($oAction->getDisplayName() != '')}
<th>{$oAction->getDisplayName()}</th>
{/if}
{/foreach}
</thead>
<tbody>
{foreach from=$states item=oState}
{assign value=$oState->getId() var=state_id}
<tr>
<td>{$oState->getName()}</td>
{foreach from=$actions item=oAction}
{if ($oAction->getDisplayName() != '')}
{assign value=$oAction->getName() var=action_id}
{if $grid.$state_id.$action_id}
<td class="centered"><span class="ktAction ktDenied">{i18n}Denied{/i18n}</span></td>
{else}
<td class="centered">—</td>
{/if}
{/if}
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
</div>