manage_permissions.smarty
1.22 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
50
51
52
53
54
55
<h2>Existing permissions</h2>
<p class="descriptiveText"><strong>FIXME</strong> add a useful explanation about permissions.</p>
<form>
<fieldset>
<legend>Create a new permission</legend>
<input type="hidden" name="action" value="newPermission">
{foreach item=oWidget from=$add_fields}
{$oWidget->render()}
{/foreach}
<div class="form_actions">
<input type="submit" name="submit" value="Create">
</div>
</fieldset>
</form>
<table class="listing">
<thead>
<tr>
<th>Permission</th>
<th>Human Name</th>
<th>Delete</th>
</tr>
</thead>
{ foreach item=oPerm from=$permissions }
<tr class="{cycle values="odd,even"}">
<td>
{ $oPerm->sName }
</td>
<td>
{ $oPerm->sHumanName }
</td>
{ if $oPerm->bBuiltIn == true }
<td>
Built-in
</td>
{ else }
<!-- <td>
Edit
</td> -->
<td>
<a href="{$smarty.server.PHP_SELF}?action=deletePermission&id={$oPerm->getId()}" class="ktAction ktDelete">Delete Permission</a>
</td>
{ /if }
</tr>
{ /foreach }
</table>