1 {include file="time_script.tpl"}
3 {$forms.timeRecordForm.open}
4 <table cellspacing="4" cellpadding="7" border="0">
11 {if $user->isPluginEnabled('cl')}
13 <td align="right">{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}:</td>
14 <td>{$forms.timeRecordForm.client.control}</td>
17 {if $user->isPluginEnabled('iv')}
19 <td align="right"> </td>
20 <td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td>
23 {if ($user->canManageTeam() && $user->isPluginEnabled('ps'))}
25 <td align="right"> </td>
26 <td><label>{$forms.timeRecordForm.paid.control}{$i18n.label.paid}</label></td>
29 {if ($custom_fields && $custom_fields->fields[0])}
31 <td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.timeRecordForm.cf_1.control}</td>
34 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
36 <td align="right">{$i18n.label.project} (*):</td>
37 <td>{$forms.timeRecordForm.project.control}</td>
40 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
42 <td align="right">{$i18n.label.task}{if $user->task_required} (*){/if}:</td>
43 <td>{$forms.timeRecordForm.task.control}</td>
46 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
48 <td align="right">{$i18n.label.start}:</td>
49 <td>{$forms.timeRecordForm.start.control} <input onclick="setNow('start');" type="button" tabindex="-1" value="{$i18n.button.now}"></td>
52 <td align="right">{$i18n.label.finish}:</td>
53 <td>{$forms.timeRecordForm.finish.control} <input onclick="setNow('finish');" type="button" tabindex="-1" value="{$i18n.button.now}"></td>
56 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
58 <td align="right">{$i18n.label.duration}:</td>
59 <td>{$forms.timeRecordForm.duration.control} {if $user->decimal_mark == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}</td>
63 <td align="right">{$i18n.label.date}:</td>
64 <td>{$forms.timeRecordForm.date.control}</td>
67 <td align="right">{$i18n.label.note}:</td>
68 <td>{$forms.timeRecordForm.note.control}</td>
71 <td colspan="2"> </td>
75 <td align="left">{$forms.timeRecordForm.btn_save.control} {$forms.timeRecordForm.btn_copy.control} {$forms.timeRecordForm.btn_delete.control}</td>
84 {$forms.timeRecordForm.close}