1 {include file="time_script.tpl"}
3 {* Conditional include of confirmSave handler. *}
6 var original_date = "{$entry_date}";
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}");
17 {$forms.timeRecordForm.open}
18 <table cellspacing="4" cellpadding="7" border="0">
25 {if $user->isPluginEnabled('cl')}
26 <tr><td>{$i18n.label.client}:</td></tr>
27 <tr><td>{$forms.timeRecordForm.client.control}</td></tr>
29 {if $user->isPluginEnabled('iv')}
30 <tr><td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
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>
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>
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>
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} <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} <input onclick="setNow('finish');" type="button" value="{$i18n.button.now}"></td></tr>
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>
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>
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>
70 {$forms.timeRecordForm.close}