orgadmin.smarty
951 Bytes
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
<h2>Orgnisation Administration</h2>
<p class="descriptiveText"><strong>FIXME</strong> Overview of Organisations.</p>
{if ($for_edit === true)}
<form action="{$smarty.server.PHP_SELF}" method="GET">
<fieldset>
<legend>Change organisation details</legend>
asd
<input type="hidden" name="action" value="updateOrg" />
<input type="hidden" name="org_id" value="{$edit_org->getId()}" />
{foreach item=oWidget from=$edit_fields}
{$oWidget->render()}
{/foreach}
<div class="form_actions">
<input type="submit" value="update organisation information" />
</div class="form_actions">
</fieldset>
</form>
{/if}
<table class="listing">
<thead>
<tr>
<th>Organisation Name</th>
<th>Edit</th>
</tr>
</thead>
<tbody>
{foreach item=oOrg from=$org_list}
<tr>
<td>{$oOrg->getName()}</td>
<td><a href="?org_id={$oOrg->getId()}" class="ktAction ktEdit">Edit</a></td>
</tr>
{/foreach}
</tbody>
</table>