actions_edit.smarty
1.25 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
<h2>Assign blocked actions</h2>
<p class="descriptiveText important">Actions which are checked on this page will
<strong>not</strong> be available to users.</p>
<form method="POST" action="{$smarty.server.PHP_SELF}">
<fieldset><legend>Assign Blocked Actions</legend>
{foreach from=$args item=v key=k}
<input type="hidden" name="{$k}" value="{$v}" />
{/foreach}
<table class="kt_collection narrow" cellspacing="0">
<thead>
<th>State</th>
{foreach from=$actions item=oAction}
<th>{$oAction->getDisplayName()}</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 class="form_actions">
<input type="submit" value="{i18n}Block actions{/i18n}" />
</div>
</fieldset>
</form>