7fea177756fa9e421e036233c7fdceabe5a2f9ad
[timetracker.git] / WEB-INF / templates / mobile / time.tpl
1 {include file="time_script.tpl"}
2
3 <style>
4 .not_billable td {
5   color: #ff6666;
6 }
7 </style>
8
9 <table cellspacing="3" cellpadding="0" border="0" width="100%">
10   <tr>
11     <td class="sectionHeaderNoBorder" align="right"><a href="time.php?date={$prev_date}">&lt;&lt;</a></td>
12     <td class="sectionHeaderNoBorder" align="center">{$timestring}</td>
13     <td class="sectionHeaderNoBorder" align="left"><a href="time.php?date={$next_date}">&gt;&gt;</a></td>
14   </tr>
15 </table>
16
17 <table cellspacing="3" cellpadding="0" border="0" width="100%">
18 <tr>
19   <td align="center">
20     {if $time_records}
21       <table class="mobile-table-details">
22       {foreach $time_records as $record}
23       <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}" {if !$record.billable} class="not_billable" {/if}>
24 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
25         <td valign="top">{$record.project|escape}</td>
26 {/if}
27         <td align="right" valign="top">{if ($record.duration == '0:00' && $record.start <> '')}<font color="#ff0000">{/if}{$record.duration}{if ($record.duration == '0:00' && $record.start <> '')}</font>{/if}</td>
28         <td align="center">{if $record.approved || $record.timesheet_id || $record.invoice_id}&nbsp;{else}<a href="time_edit.php?id={$record.id}">{$i18n.label.edit}</a>{/if}</td>
29       </tr>
30       {/foreach}
31     </table>
32     <table border="0">
33       <tr>
34         <td align="right">{$i18n.label.day_total}:</td>
35         <td>{$day_total}</td>
36       </tr>
37     </table>
38     {/if}
39   </td>
40 </tr>
41 </table>
42
43 {$forms.timeRecordForm.open}
44 <table cellspacing="4" cellpadding="7" border="0">
45 <tr>
46   <td>
47   <table width = "100%">
48   <tr>
49     <td valign="top">
50     <table border="0">
51 {if $user_dropdown}
52       <tr><td>{$i18n.label.user}:</td></tr>
53       <tr><td>{$forms.timeRecordForm.user.control}</td></tr>
54 {/if}
55 {if $user->isPluginEnabled('cl')}
56       <tr><td>{$i18n.label.client}:</td></tr>
57       <tr><td>{$forms.timeRecordForm.client.control}</td></tr>
58 {/if}
59 {if $user->isPluginEnabled('iv')}
60       <tr><td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
61 {/if}
62 {if ($custom_fields && $custom_fields->fields[0])}
63       <tr><td>{$custom_fields->fields[0]['label']|escape}:</td></tr>
64       <tr><td>{$forms.timeRecordForm.cf_1.control}</td></tr>
65 {/if}
66 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
67     <tr><td>{$i18n.label.project}:</td></tr>
68     <tr><td>{$forms.timeRecordForm.project.control}</td></tr>
69 {/if}
70 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
71     <tr><td>{$i18n.label.task}:</td></tr>
72     <tr><td>{$forms.timeRecordForm.task.control}</td></tr>
73 {/if}
74 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
75     <tr><td>{$i18n.label.start}:</td></tr>
76     <tr><td>{$forms.timeRecordForm.start.control}&nbsp;<input onclick="setNow('start');" type="button" value="{$i18n.button.now}"></td></tr>
77
78     <tr><td>{$i18n.label.finish}:</td></tr>
79     <tr><td>{$forms.timeRecordForm.finish.control}&nbsp;<input onclick="setNow('finish');" type="button" value="{$i18n.button.now}"></td></tr>
80 {/if}
81 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
82     <tr><td>{$i18n.label.duration}:</td></tr>
83     <tr><td>{$forms.timeRecordForm.duration.control}</td></tr>
84 {/if}
85 {if $template_dropdown}
86     <tr><td>{$i18n.label.template}:</td></tr>
87     <tr><td>{$forms.timeRecordForm.template.control}</td></tr>
88 {/if}
89
90     <tr><td>{$i18n.label.note}:</td></tr>
91     <tr><td>{$forms.timeRecordForm.note.control}</td></tr>
92     </table>
93     </td>
94   </tr>
95   <tr>
96     <td colspan="2" height="50" align="center">{$forms.timeRecordForm.btn_submit.control}</td>
97   </tr>
98   </table>
99   </td>
100 </tr>
101 </table>
102 {$forms.timeRecordForm.close}