You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.3 KiB

{extends 'layout_view.tpl'}
{block name="title"}
{title}{$title|escape}{/title}
{/block}
{block name="content"}
<form method="post" action="{service controller=workspace action=select_permissions}">
<table class="data">
<tr>
<th>{tr}Permissions{/tr}</th>
{foreach from=$groups item=group}
<th>{$group|escape}</th>
{/foreach}
</tr>
{foreach from=$descriptions key=type item=block}
<tr>
<th colspan="{$permissions|count + 1}">{$type|escape}</th>
</tr>
{foreach from=$block item=row}
<tr>
<td>
{$row.description|escape}
<div class="description form-text">
{$row.name|escape}
</div>
</td>
{foreach from=$permissions key=group item=perms}
<td>
<input type="checkbox" name="check[{$group|escape}][]" value="{$row.shortName|escape}" {if in_array($row.shortName, $perms)} checked="checked" {/if} />
</td>
{/foreach}
</tr>
{/foreach}
{/foreach}
</table>
</form>
{/block}