Introduced tile.display_options in translation files.
[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}"><img class="table_icon" alt="{$i18n.label.edit}" src="../images/icon_edit.png"></a>{/if}</td>
29         <td align="center">{if $record.approved || $record.timesheet_id || $record.invoice_id}&nbsp;{else}<a href="time_delete.php?id={$record.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="../images/icon_delete.png"></a>{/if}</td>
30       </tr>
31       {/foreach}
32     </table>
33     <table border="0">
34       <tr>
35         <td align="right">{$i18n.label.day_total}:</td>
36         <td>{$day_total}</td>
37       </tr>
38     </table>
39     {/if}
40   </td>
41 </tr>
42 </table>
43
44 {$forms.timeRecordForm.open}
45 <table cellspacing="4" cellpadding="7" border="0">
46 <tr>
47   <td>
48   <table width = "100%">
49   <tr>
50     <td valign="top">
51     <table border="0">
52 {if $user_dropdown}
53       <tr><td>{$i18n.label.user}:</td></tr>
54       <tr><td>{$forms.timeRecordForm.user.control}</td></tr>
55 {/if}
56 {if $user->isPluginEnabled('cl')}
57       <tr><td>{$i18n.label.client}:</td></tr>
58       <tr><td>{$forms.timeRecordForm.client.control}</td></tr>
59 {/if}
60 {if $user->isPluginEnabled('iv')}
61       <tr><td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
62 {/if}
63 {if ($custom_fields && $custom_fields->fields[0])}
64       <tr><td>{$custom_fields->fields[0]['label']|escape}:</td></tr>
65       <tr><td>{$forms.timeRecordForm.cf_1.control}</td></tr>
66 {/if}
67 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
68     <tr><td>{$i18n.label.project}:</td></tr>
69     <tr><td>{$forms.timeRecordForm.project.control}</td></tr>
70 {/if}
71 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
72     <tr><td>{$i18n.label.task}:</td></tr>
73     <tr><td>{$forms.timeRecordForm.task.control}</td></tr>
74 {/if}
75 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
76     <tr><td>{$i18n.label.start}:</td></tr>
77     <tr><td>{$forms.timeRecordForm.start.control}&nbsp;<input onclick="setNow('start');" type="button" value="{$i18n.button.now}"></td></tr>
78
79     <tr><td>{$i18n.label.finish}:</td></tr>
80     <tr><td>{$forms.timeRecordForm.finish.control}&nbsp;<input onclick="setNow('finish');" type="button" value="{$i18n.button.now}"></td></tr>
81 {/if}
82 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
83     <tr><td>{$i18n.label.duration}:</td></tr>
84     <tr><td>{$forms.timeRecordForm.duration.control}</td></tr>
85 {/if}
86 {if $template_dropdown}
87     <tr><td>{$i18n.label.template}:</td></tr>
88     <tr><td>{$forms.timeRecordForm.template.control}</td></tr>
89 {/if}
90
91     <tr><td>{$i18n.label.note}:</td></tr>
92     <tr><td>{$forms.timeRecordForm.note.control}</td></tr>
93     </table>
94     </td>
95   </tr>
96   <tr>
97     <td colspan="2" height="50" align="center">{$forms.timeRecordForm.btn_submit.control}</td>
98   </tr>
99   </table>
100   </td>
101 </tr>
102 </table>
103 {$forms.timeRecordForm.close}