Initial repo created
[timetracker.git] / WEB-INF / templates / invoices.tpl
1 <script>
2   function chLocation(newLocation) { document.location = newLocation; }
3 </script>
4
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
6   <tr>
7     <td valign="top">
8 {if $user->canManageTeam() || $user->isClient()}
9       <table cellspacing="1" cellpadding="3" border="0" width="100%">
10         <tr>
11           <td class="tableHeader">{$i18n.label.invoice}</td>
12           <td class="tableHeader">{$i18n.label.client}</td>
13           <td class="tableHeader">{$i18n.label.date}</td>
14           <td class="tableHeader">{$i18n.label.view}</td>
15   {if !$user->isClient()}
16           <td class="tableHeader">{$i18n.label.delete}</td>
17   {/if}
18         </tr>
19         {foreach $invoices as $invoice}
20         <tr valign="top" bgcolor="{cycle values="#f5f5f5,#dedee5"}">
21           <td>{$invoice.name|escape:'html'}</td>
22           <td>{$invoice.client_name|escape:'html'}</td>
23           <td>{$invoice.date}</td>
24           <td><a href="invoice_view.php?id={$invoice.id}">{$i18n.label.view}</a></td>
25   {if !$user->isClient()}
26           <td><a href="invoice_delete.php?id={$invoice.id}">{$i18n.label.delete}</a></td>
27   {/if}
28         </tr>
29         {/foreach}
30       </table>
31   
32   {if !$user->isClient()}
33       <table width="100%">
34         <tr><td align="center"><br><form><input type="button" onclick="chLocation('invoice_add.php');" value="{$i18n.button.add_invoice}"></form></td></tr>
35       </table>
36   {/if}
37 {/if}
38     </td>
39   </tr>
40 </table>