actions_edit.smarty
1.58 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
40
41
42
43
44
45
46
47
48
49
<h2>{i18n}Assign blocked actions{/i18n}</h2>
<p class="descriptiveText important">{i18n}Actions which are checked on this page will
<strong>not</strong> be available to users.{/i18n}</p>
<form method="POST" action="{$smarty.server.PHP_SELF}">
<fieldset><legend>{i18n}Assign Blocked Actions{/i18n}</legend>
{foreach from=$args item=v key=k}
<input type="hidden" name="{$k}" value="{$v}" />
{/foreach}
<div class="action_overview_scroll">
<table class="kt_collection narrow" cellspacing="0">
<thead>
<th>{i18n}State{/i18n}</th>
{foreach from=$actions item=oAction}
<th>
{if $oAction->getDisplayName() != ''}
{$oAction->getDisplayName()}
{else}
{$oAction->getName()}
{/if}
</th>
{/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}
{assign value=$oAction->getName() var=action_id}
<td class="centered">
<input type="checkbox" name="fActions[{$state_id}][{$action_id}]" value="{$action_id}" {if ($grid.$state_id.$action_id)}checked="true"{/if} />
</td>
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="form_actions">
<input type="submit" value="{i18n}Block actions{/i18n}" />
<a href="{addQS context=$context}action=actionsoverview{/addQS}" class="form_cancel">{i18n}Cancel{/i18n}</a>
</div>
</fieldset>
</form>