More work in progress on remote work plugin.
[timetracker.git] / WEB-INF / templates / templates.tpl
index a1ea349..2e388b4 100644 (file)
@@ -3,25 +3,49 @@
   <tr>
     <td valign="top">
       <table cellspacing="1" cellpadding="3" border="0" width="100%">
+{if $inactive_templates}
+        <tr><td class="sectionHeaderNoBorder">{$i18n.form.templates.active_templates}</td></tr>
+{/if}
         <tr>
-          <td class="tableHeader">{$i18n.label.thing_name}</td>
-          <td class="tableHeader">{$i18n.label.edit}</td>
-          <td class="tableHeader">{$i18n.label.delete}</td>
+          <td class="tableHeader" width="45%">{$i18n.label.thing_name}</td>
+          <td class="tableHeader" width="45%">{$i18n.label.description}</td>
+          <td></td>
+          <td></td>
         </tr>
-  {if $templates}
-    {foreach $templates as $template}
+    {foreach $active_templates as $template}
         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
-          <td>{$template_expense['name']|escape}</td>
-          <td><a href="template_edit.php?id={$template['id']}">{$i18n.label.edit}</a></td>
-          <td><a href="template_delete.php?id={$template['id']}">{$i18n.label.delete}</a></td>
+          <td>{$template['name']|escape}</td>
+          <td>{$template['description']|escape}</td>
+          <td><a href="template_edit.php?id={$template['id']}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
+          <td><a href="template_delete.php?id={$template['id']}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
         </tr>
     {/foreach}
-  {/if}
       </table>
-
       <table width="100%">
         <tr><td align="center"><br>{$forms.templatesForm.btn_add.control}</td></tr>
       </table>
+{if $inactive_templates}
+      <table cellspacing="1" cellpadding="3" border="0" width="100%">
+        <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.inactive_tasks}</td></tr>
+        <tr>
+          <td class="tableHeader" width="45%">{$i18n.label.thing_name}</td>
+          <td class="tableHeader" width="45%">{$i18n.label.description}</td>
+          <td></td>
+          <td></td>
+        </tr>
+    {foreach $inactive_templates as $template}
+        <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
+          <td>{$template['name']|escape}</td>
+          <td>{$template['description']|escape}</td>
+          <td><a href="template_edit.php?id={$template['id']}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
+          <td><a href="template_delete.php?id={$template['id']}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
+        </tr>
+    {/foreach}
+      </table>
+      <table width="100%">
+        <tr><td align="center"><br>{$forms.templatesForm.btn_add.control}</td></tr>
+      </table>
+{/if}
     </td>
   </tr>
 </table>