orgadmin.smarty
1.02 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
<h2>{i18n}Orgnisation Administration{/i18n}</h2>
<p class="descriptiveText"><strong>FIXME</strong> Overview of Organisations.</p>
{if ($for_edit === true)}
<form action="{$smarty.server.PHP_SELF}" method="POST">
<fieldset>
<legend>{i18n}Change organisation details{/i18n}</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="{i18n}update organisation information{/i18n}" />
</div class="form_actions">
</fieldset>
</form>
{/if}
<table class="listing">
<thead>
<tr>
<th>{i18n}Organisation Name{/i18n}</th>
<th>{i18n}Edit{/i18n}</th>
</tr>
</thead>
<tbody>
{foreach item=oOrg from=$org_list}
<tr>
<td>{$oOrg->getName()}</td>
<td><a href="{addQS}org_id={$oOrg->getId()}{/addQS}" class="ktAction ktEdit">{i18n}Edit{/i18n}</a></td>
</tr>
{/foreach}
</tbody>
</table>