Added 2 labels for timesheets in translation files.
[timetracker.git] / WEB-INF / templates / timesheets.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->can('manage_invoices') || $user->can('view_own_invoices')}
9       <table cellspacing="1" cellpadding="3" border="0" width="100%">
10         <tr><td colspan="2">{$i18n.form.timesheets.hint}<br></td></tr>
11         <tr>
12           <td class="tableHeader">{$i18n.label.thing_name}</td>
13   {if $user->isPluginEnabled('cl')}
14           <td class="tableHeader">{$i18n.label.client}</td>
15   {/if}
16   <td class="tableHeader">{$i18n.label.submitted}</td>
17   <td class="tableHeader">{$i18n.label.approved}</td>
18           <td class="tableHeader">{$i18n.label.view}</td>
19         </tr>
20         {foreach $timesheets as $timesheet}
21         <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
22           <td>{$invoice.name|escape}</td>
23           <td>{$invoice.client_name|escape}</td>
24           <td>{$invoice.date}</td>
25   {if $user->isPluginEnabled('ps')}
26           <td>{if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
27   {/if}
28           <td><a href="invoice_view.php?id={$invoice.id}">{$i18n.label.view}</a></td>
29   {if !$user->isClient()}
30           <td><a href="invoice_delete.php?id={$invoice.id}">{$i18n.label.delete}</a></td>
31   {/if}
32         </tr>
33         {/foreach}
34       </table>
35
36   {if !$user->isClient()}
37       <table width="100%">
38         <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
39       </table>
40   {/if}
41 {/if}
42     </td>
43   </tr>
44 </table>