Replaced text links with icons on users.php page.
[timetracker.git] / WEB-INF / templates / mobile / time_edit.tpl
1 {include file="time_script.tpl"}
2
3 {* Conditional include of confirmSave handler. *}
4 {if $confirm_save}
5 <script>
6 var original_date = "{$entry_date}";
7
8 function confirmSave() {
9   var date_on_save = document.getElementById("date").value;
10   if (original_date != date_on_save) {
11     return confirm("{$i18n.warn.confirm_save}");
12   }
13 }
14 </script>
15 {/if}
16
17 {$forms.timeRecordForm.open}
18 <table cellspacing="4" cellpadding="7" border="0">
19 <tr>
20   <td>
21   <table width="100%">
22   <tr>
23     <td valign="top">
24     <table border="0">
25 {if $user->isPluginEnabled('cl')}
26     <tr><td>{$i18n.label.client}:</td></tr>
27     <tr><td>{$forms.timeRecordForm.client.control}</td></tr>
28 {/if}
29 {if $user->isPluginEnabled('iv')}
30     <tr><td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
31 {/if}
32 {if ($custom_fields && $custom_fields->fields[0])} 
33     <tr><td>{$custom_fields->fields[0]['label']|escape}:</td></tr>
34     <tr><td>{$forms.timeRecordForm.cf_1.control}</td></tr>
35 {/if}
36 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
37     <tr><td>{$i18n.label.project}:</td></tr>
38     <tr><td>{$forms.timeRecordForm.project.control}</td></tr>
39 {/if}
40 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
41     <tr><td>{$i18n.label.task}:</td></tr>
42     <tr><td>{$forms.timeRecordForm.task.control}</td></tr>
43 {/if}
44 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
45     <tr><td>{$i18n.label.start}:</td></tr>
46     <tr><td>{$forms.timeRecordForm.start.control}&nbsp;<input onclick="setNow('start');" type="button" value="{$i18n.button.now}"></td></tr>
47     <tr><td>{$i18n.label.finish}:</td></tr>
48     <tr><td>{$forms.timeRecordForm.finish.control}&nbsp;<input onclick="setNow('finish');" type="button" value="{$i18n.button.now}"></td></tr>
49 {/if}
50 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
51     <tr><td>{$i18n.label.duration}:</td></tr>
52     <tr><td>{$forms.timeRecordForm.duration.control}</td></tr>
53 {/if}
54     <tr><td>{$i18n.label.date}:</td></tr>
55     <tr><td>{$forms.timeRecordForm.date.control}</td></tr>
56 {if $template_dropdown}
57     <tr><td>{$i18n.label.template}:</td></tr>
58     <tr><td>{$forms.timeRecordForm.template.control}</td></tr>
59 {/if}
60     <tr><td>{$i18n.label.note}:</td></tr>
61     <tr><td>{$forms.timeRecordForm.note.control}</td></tr>
62     <tr><td align="center">{$forms.timeRecordForm.btn_save.control} {$forms.timeRecordForm.btn_copy.control} {$forms.timeRecordForm.btn_delete.control}</td></tr>
63     </table>
64     </td>
65     </tr>
66   </table>
67   </td>
68   </tr>
69 </table>
70 {$forms.timeRecordForm.close}