forked from Ben0it-T/timetracker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadmin_groups.tpl
More file actions
36 lines (34 loc) · 1.22 KB
/
admin_groups.tpl
File metadata and controls
36 lines (34 loc) · 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
{* Copyright (c) Anuko International Ltd. https://www.anuko.com
License: See license.txt *}
<script>
function chLocation(newLocation) { document.location = newLocation; }
</script>
<div class="page-hint">{$i18n.form.groups.hint}</div>
{if $groups}
<table class="x-scrollable-table">
<tr>
<th>{$i18n.label.id}</th>
<th>{$i18n.label.thing_name}</th>
<th>{$i18n.label.date}</th>
<th>{$i18n.label.language}</th>
<th></th>
<th></th>
</tr>
{foreach $groups as $group}
<tr>
<td>{$group.id}</td>
<td class="text-cell">{$group.name|escape}</td>
<td class="date-cell">{$group.date}</td>
<td>{$group.lang}</td>
<td><a href="admin_group_edit.php?id={$group.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="img/icon-edit.png"></a></td>
<td><a href="admin_group_delete.php?id={$group.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="img/icon-delete.png"></a></td>
</tr>
{/foreach}
</table>
{/if}
<div class="button-set">
<form>
<input type="button" onclick="chLocation('admin_group_add.php');" value="{$i18n.button.create_group}"> {$i18n.label.or}
<input type="button" onclick="chLocation('import.php');" value="{$i18n.button.import}">
</form>
</div>