Template editor done.
[timetracker.git] / WEB-INF / templates / timesheets.tpl
1 <script>
2   function chLocation(newLocation) { document.location = newLocation; }
3 </script>
4
5 {$forms.timesheetsForm.open}
6 <table cellspacing="0" cellpadding="7" border="0" width="720">
7 {if $user_dropdown}
8   <tr><td align="center">{$i18n.label.user}: {$forms.timesheetsForm.user.control}</td></tr>
9 {/if}
10   <tr>
11     <td valign="top">
12       <table cellspacing="1" cellpadding="3" border="0" width="100%">
13 {if $inactive_timesheets}
14         <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.active_timesheets}</td></tr>
15 {/if}
16         <tr>
17           <td class="tableHeader">{$i18n.label.thing_name}</td>
18 {if $show_client}
19           <td class="tableHeader">{$i18n.label.client}</td>
20 {/if}
21           <td class="tableHeader">{$i18n.label.submitted}</td>
22           <td class="tableHeader">{$i18n.label.approved}</td>
23           <td class="tableHeader">{$i18n.label.view}</td>
24           <td class="tableHeader">{$i18n.label.edit}</td>
25         </tr>
26 {foreach $active_timesheets as $timesheet}
27         <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
28           <td>{$timesheet.name|escape}</td>
29   {if $show_client}
30           <td>{$timesheet.client_name|escape}</td>
31   {/if}
32           <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
33   {if $timesheet.approve_status == null}
34           <td></td>
35   {else}
36           <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
37   {/if}
38           <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
39           <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
40         </tr>
41 {/foreach}
42       </table>
43
44       <table width="100%">
45         <tr><td align="center"><br><form><input type="button" onclick="chLocation('timesheet_add.php');" value="{$i18n.button.add}"></form></td></tr>
46       </table>
47
48 {if $inactive_timesheets}
49       <table cellspacing="1" cellpadding="3" border="0" width="100%">
50
51         <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
52         <tr>
53           <td class="tableHeader">{$i18n.label.thing_name}</td>
54   {if $show_client}
55           <td class="tableHeader">{$i18n.label.client}</td>
56   {/if}
57           <td class="tableHeader">{$i18n.label.submitted}</td>
58           <td class="tableHeader">{$i18n.label.approved}</td>
59           <td class="tableHeader">{$i18n.label.view}</td>
60           <td class="tableHeader">{$i18n.label.edit}</td>
61         </tr>
62   {foreach $inactive_timesheets as $timesheet}
63         <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
64           <td>{$timesheet.name|escape}</td>
65     {if $show_client}
66           <td>{$timesheet.client_name|escape}</td>
67     {/if}
68           <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
69     {if $timesheet.approve_status == null}
70           <td></td>
71     {else}
72           <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
73     {/if}
74           <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
75           <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
76         </tr>
77   {/foreach}
78       </table>
79
80       <table width="100%">
81         <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
82       </table>
83 {/if}
84     </td>
85   </tr>
86 </table>
87 {$forms.timesheetsForm.close}