Started to work on group editor for subgroups.
[timetracker.git] / WEB-INF / templates / groups.tpl
1 <script>
2   function chLocation(newLocation) { document.location = newLocation; }
3 </script>
4
5 <table cellspacing="1" cellpadding="3" border="0" width="720">
6   <tr>
7     <td width="70%" class="tableHeader">{$i18n.label.thing_name}</td>
8     <td class="tableHeader">{$i18n.label.edit}</td>
9     <td class="tableHeader">{$i18n.label.delete}</td>
10   </tr>
11 {if $groups}
12   {foreach $groups as $group}
13   <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
14     <td>{$group.name|escape}</td>
15     <td><a href="group_edit.php?id={$group.id}">{$i18n.label.edit}</a></td>
16     <td><a href="group_delete.php?id={$group.id}">{$i18n.label.delete}</a></td>
17   </tr>
18   {/foreach}
19 {/if}
20 </table>
21
22 <table width="100%">
23   <tr>
24     <td align="center">
25       <br>
26       <form>
27         <input type="button" onclick="chLocation('group_add.php');" value="{$i18n.button.add}">
28       </form>
29     </td>
30   </tr>
31 </table>