Work in progress on templates plugin.
[timetracker.git] / WEB-INF / templates / templates.tpl
1 {$forms.templatesForm.open}
2 <table cellspacing="0" cellpadding="7" border="0" width="720">
3   <tr>
4     <td valign="top">
5       <table cellspacing="1" cellpadding="3" border="0" width="100%">
6         <tr>
7           <td 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 $templates}
12     {foreach $templates as $template}
13         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
14           <td>{$template_expense['name']|escape}</td>
15           <td><a href="template_edit.php?id={$template['id']}">{$i18n.label.edit}</a></td>
16           <td><a href="template_delete.php?id={$template['id']}">{$i18n.label.delete}</a></td>
17         </tr>
18     {/foreach}
19   {/if}
20       </table>
21
22       <table width="100%">
23         <tr><td align="center"><br>{$forms.templatesForm.btn_add.control}</td></tr>
24       </table>
25     </td>
26   </tr>
27 </table>
28 {$forms.templatesForm.close}