Some more work in progress on timesheets.
[timetracker.git] / WEB-INF / templates / timesheet_view.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>
8       <table border=0 width=100%>
9         <tr><td align="center"><b style="font-size: 15pt; font-family: Arial, Helvetica, sans-serif;">{$timesheet['name']|escape} </b></td></tr>
10         <tr><td align="left"><b>{$i18n.label.user}:</b> {$timesheet['user_name']|escape}</td></tr>
11 {if $timesheet['client_id']}
12         <tr><td align="left"><b>{$i18n.label.client}:</b> {$timesheet['client_name']|escape}</td></tr>
13 {/if}
14 {if $not_client}
15         <tr><td align="left"><b>{$i18n.label.submitted}:</b> {if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td></tr>
16   {if $timesheet['submitter_comment']}
17         <tr><td align="left"><b>{$i18n.label.comment}:</b> {$timesheet['submitter_comment']|escape}</td></tr>
18   {/if}
19 {/if}
20       </table>
21     </td>
22   </tr>
23   <tr>
24     <td valign="top">
25       <table border="0" cellpadding="3" cellspacing="1" width="100%">
26       <tr>
27         <td class="tableHeader">{$group_by_header|escape}</td>
28         <td class="tableHeaderCentered" width="5%">{$i18n.label.duration}</td>
29         <td class="tableHeaderCentered" width="5%">{$i18n.label.cost}</td>
30       </tr>
31   {foreach $subtotals as $subtotal}
32       <tr class="rowReportSubtotal">
33         <td class="cellLeftAlignedSubtotal">{if $subtotal['name']}{$subtotal['name']|escape}{else}&nbsp;{/if}</td>
34         <td class="cellRightAlignedSubtotal">{$subtotal['time']}</td>
35         <td class="cellRightAlignedSubtotal">{if $user->can('manage_invoices') || $user->isClient()}{$subtotal['cost']}{else}{$subtotal['expenses']}{/if}</td>
36       </tr>
37   {/foreach}
38       <tr><td>&nbsp;</td></tr>
39       <tr class="rowReportSubtotal">
40         <td class="cellLeftAlignedSubtotal">{$i18n.label.total}</td>
41         <td nowrap class="cellRightAlignedSubtotal">{$totals['time']}</td>
42         <td nowrap class="cellRightAlignedSubtotal">{$user->currency|escape} {if $user->can('manage_invoices') || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if}</td>
43       </tr>
44       </table>
45     </td>
46   </tr>
47 </table>