Prohibiting editing approved records.
[timetracker.git] / WEB-INF / templates / groups.tpl
1 <script>
2   function chLocation(newLocation) { document.location = newLocation; }
3 </script>
4 {$forms.subgroupsForm.open}
5 <table cellspacing="1" cellpadding="3" border="0" width="720">
6 {if $group_dropdown}
7   <tr>
8     <td align="right">{$i18n.label.group}:</td>
9     <td>{$forms.subgroupsForm.group.control}</td>
10   </tr>
11   <tr><td colspan="2">&nbsp;</td></tr>
12 {/if}
13   <tr>
14     <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
15     <td width="35%" class="tableHeader">{$i18n.label.description}</td>
16     <td class="tableHeader">{$i18n.label.edit}</td>
17     <td class="tableHeader">{$i18n.label.delete}</td>
18   </tr>
19 {if $subgroups}
20   {foreach $subgroups as $subgroup}
21   <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
22     <td>{$subgroup.name|escape}</td>
23     <td>{$subgroup.description|escape}</td>
24     <td><a href="group_edit.php?id={$subgroup.id}">{$i18n.label.edit}</a></td>
25     <td><a href="group_delete.php?id={$subgroup.id}">{$i18n.label.delete}</a></td>
26   </tr>
27   {/foreach}
28 {/if}
29 </table>
30 {$forms.subgroupsForm.close}
31
32 <table width="100%">
33   <tr>
34     <td align="center">
35       <br>
36       <form>
37         <input type="button" onclick="chLocation('group_add.php');" value="{$i18n.button.add}">
38       </form>
39     </td>
40   </tr>
41 </table>