Removed middots in menus to hopefully do better styling with css.
[timetracker.git] / WEB-INF / templates / groups.tpl
index d9748bc..0289ef9 100644 (file)
@@ -1,23 +1,34 @@
 <script>
   function chLocation(newLocation) { document.location = newLocation; }
 </script>
-
+{$forms.subgroupsForm.open}
+{if $group_dropdown}
+<table cellspacing="1" cellpadding="3" border="0" width="100%">
+  <tr>
+    <td align="center">{$i18n.label.group}: {$forms.subgroupsForm.group.control}</td>
+  </tr>
+  <tr><td>&nbsp;</td></tr>
+</table>
+{/if}
+{if $subgroups}
 <table cellspacing="1" cellpadding="3" border="0" width="720">
   <tr>
-    <td width="70%" class="tableHeader">{$i18n.label.thing_name}</td>
-    <td class="tableHeader">{$i18n.label.edit}</td>
-    <td class="tableHeader">{$i18n.label.delete}</td>
+    <td width="40%" class="tableHeader">{$i18n.label.thing_name}</td>
+    <td width="40%" class="tableHeader">{$i18n.label.description}</td>
+    <td></td>
+    <td></td>
   </tr>
-{if $groups}
-  {foreach $groups as $group}
+  {foreach $subgroups as $subgroup}
   <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
-    <td>{$group.name|escape}</td>
-    <td><a href="group_edit.php?id={$group.id}">{$i18n.label.edit}</a></td>
-    <td><a href="group_delete.php?id={$group.id}">{$i18n.label.delete}</a></td>
+    <td>{$subgroup.name|escape}</td>
+    <td>{$subgroup.description|escape}</td>
+    <td><a href="group_edit.php?id={$subgroup.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
+    <td><a href="group_delete.php?id={$subgroup.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
   </tr>
   {/foreach}
-{/if}
 </table>
+{/if}
+{$forms.subgroupsForm.close}
 
 <table width="100%">
   <tr>