]> wagnertech.de Git - timetracker.git/blob - WEB-INF/templates/timesheet_view.tpl
Some fixes to export/import of 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 {if $user->behalfUser}
11         <tr><td align="left"><b>{$i18n.label.user}:</b> {$timesheet['user_name']|escape}</td></tr>
12 {/if}
13 {if $timesheet['client_id']}
14         <tr><td align="left"><b>{$i18n.label.client}:</b> {$timesheet['client_name']|escape}</td></tr>
15 {/if}
16 {if $timesheet['project_id']}
17         <tr><td align="left"><b>{$i18n.label.project}:</b> {$timesheet['project_name']|escape}</td></tr>
18 {/if}
19 {if $timesheet['comment']}
20         <tr><td align="left"><b>{$i18n.label.comment}:</b> {$timesheet['comment']|escape}</td></tr>
21 {/if}
22 {if $timesheet['approve_status'] == null}
23         <tr><td align="left"><b>{$i18n.label.submitted}:</b> {if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td></tr>
24 {/if}
25 {if $timesheet['approve_status'] != null}
26         <tr><td align="left"><b>{$i18n.label.approved}:</b> {if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td></tr>
27 {/if}
28 {if $timesheet['approve_comment']}
29         <tr><td align="left"><b>{$i18n.label.note}:</b> {$timesheet['approve_comment']|escape}</td></tr>
30 {/if}
31       </table>
32     </td>
33   </tr>
34   <tr>
35     <td valign="top">
36       <table border="0" cellpadding="3" cellspacing="1" width="100%">
37       <tr>
38         <td class="tableHeader">{$group_by_header|escape}</td>
39         <td class="tableHeaderCentered" width="5%">{$i18n.label.duration}</td>
40         <td class="tableHeaderCentered" width="5%">{$i18n.label.cost}</td>
41       </tr>
42   {foreach $subtotals as $subtotal}
43       <tr class="rowReportSubtotal">
44         <td class="cellLeftAlignedSubtotal">{if $subtotal['name']}{$subtotal['name']|escape}{else}&nbsp;{/if}</td>
45         <td class="cellRightAlignedSubtotal">{$subtotal['time']}</td>
46         <td class="cellRightAlignedSubtotal">{if $user->can('manage_invoices') || $user->isClient()}{$subtotal['cost']}{else}{$subtotal['expenses']}{/if}</td>
47       </tr>
48   {/foreach}
49       <tr><td>&nbsp;</td></tr>
50       <tr class="rowReportSubtotal">
51         <td class="cellLeftAlignedSubtotal">{$i18n.label.total}</td>
52         <td nowrap class="cellRightAlignedSubtotal">{$totals['time']}</td>
53         <td nowrap class="cellRightAlignedSubtotal">{$user->currency|escape} {if $user->can('manage_invoices') || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if}</td>
54       </tr>
55       </table>
56
57 {$forms.timesheetForm.open}
58   {if $show_submit}
59   <table width="720" cellspacing="0" cellpadding="0" border="0">
60   <tr>
61     <td align="center">
62       <table>
63         <tr><td>{if $show_approvers}{$i18n.form.mail.to}: {$forms.timesheetForm.approver.control}{/if} {$forms.timesheetForm.btn_submit.control}</td></tr>
64       </table>
65     </td>
66   </tr>
67   </table>
68   {/if}
69   {if $show_approve}
70   <table width="720" cellspacing="0" cellpadding="0" border="0">
71   <tr>
72     <td align="center">
73       <table>
74         <tr><td align="center">{$i18n.label.comment}:</td></tr>
75         <tr><td align="center">{$forms.timesheetForm.comment.control}</td></tr>
76         <tr><td align="center">{$forms.timesheetForm.btn_approve.control} {$forms.timesheetForm.btn_disapprove.control}</td></tr>
77       </table>
78     </td>
79   </tr>
80   </table>
81   {/if}
82 {$forms.timesheetForm.close}
83
84     </td>
85   </tr>
86 </table>