8c6a14142d18291befd1709833134c90e81b0e9e
[timetracker.git] / WEB-INF / templates / mobile / time_edit.tpl
1 {include file="time_script.tpl"}
2
3 {$forms.timeRecordForm.open}
4 <table cellspacing="4" cellpadding="7" border="0">
5 <tr>
6   <td>
7   <table width="100%">
8   <tr>
9     <td valign="top">
10     <table border="0">
11 {if $user->isPluginEnabled('cl')}
12     <tr><td>{$i18n.label.client}:</td></tr>
13     <tr><td>{$forms.timeRecordForm.client.control}</td></tr>
14 {/if}
15 {if $user->isPluginEnabled('iv')}
16     <tr><td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
17 {/if}
18 {if ($custom_fields && $custom_fields->fields[0])} 
19     <tr><td>{$custom_fields->fields[0]['label']|escape}:</td></tr>
20     <tr><td>{$forms.timeRecordForm.cf_1.control}</td></tr>
21 {/if}
22 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
23     <tr><td>{$i18n.label.project}:</td></tr>
24     <tr><td>{$forms.timeRecordForm.project.control}</td></tr>
25 {/if}
26 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
27     <tr><td>{$i18n.label.task}:</td></tr>
28     <tr><td>{$forms.timeRecordForm.task.control}</td></tr>
29 {/if}
30 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
31     <tr><td>{$i18n.label.start}:</td></tr>
32     <tr><td>{$forms.timeRecordForm.start.control}&nbsp;<input onclick="setNow('start');" type="button" value="{$i18n.button.now}"></td></tr>
33     <tr><td>{$i18n.label.finish}:</td></tr>
34     <tr><td>{$forms.timeRecordForm.finish.control}&nbsp;<input onclick="setNow('finish');" type="button" value="{$i18n.button.now}"></td></tr>
35 {/if}
36 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
37     <tr><td>{$i18n.label.duration}:</td></tr>
38     <tr><td>{$forms.timeRecordForm.duration.control}</td></tr>
39 {/if}
40     <tr><td>{$i18n.label.date}:</td></tr>
41     <tr><td>{$forms.timeRecordForm.date.control}</td></tr>
42     <tr><td>{$i18n.label.note}:</td></tr>
43     <tr><td>{$forms.timeRecordForm.note.control}</td></tr>
44     <tr><td align="center">{$forms.timeRecordForm.btn_save.control}&nbsp;{$forms.timeRecordForm.btn_delete.control}</td></tr>
45     </table>
46     </td>
47     </tr>
48   </table>
49   </td>
50   </tr>
51 </table>
52 {$forms.timeRecordForm.close}