<tr>
<td valign="top">
<table>
-{if $on_behalf_control}
+{if $user_dropdown}
<tr>
<td align="right">{$i18n.label.user}:</td>
- <td>{$forms.timeRecordForm.onBehalfUser.control}</td>
+ <td>{$forms.timeRecordForm.user.control}</td>
</tr>
{/if}
{if $user->isPluginEnabled('cl')}
{if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
<tr>
<td align="right">{$i18n.label.duration}:</td>
- <td>{$forms.timeRecordForm.duration.control} {if $user->decimal_mark == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}</td>
+ <td>{$forms.timeRecordForm.duration.control} {if $user->getDecimalMark() == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}</td>
</tr>
{/if}
</table>
<td align="right" valign="top">{if ($record.duration == '0:00' && $record.start <> '')}<font color="#ff0000">{$i18n.form.time.uncompleted}</font>{else}{$record.duration}{/if}</td>
<td valign="top">{if $record.comment}{$record.comment|escape}{else} {/if}</td>
<td valign="top" align="center">
- {if $record.invoice_id}
+ {if $record.timesheet_id || $record.invoice_id}
{else}
<a href="time_edit.php?id={$record.id}">{$i18n.label.edit}</a>
</td>
</tr>
</table>
-{if $time_records}
+
<table cellpadding="3" cellspacing="1" width="720">
<tr>
<td align="left">{$i18n.label.week_total}: {$week_total}</td>
{if $user->isPluginEnabled('mq')}
<tr>
<td align="left">{$i18n.label.month_total}: {$month_total}</td>
+ {if $over_balance}
+ <td align="right">{$i18n.form.time.over_balance}: <span style="color: green;">{$balance_remaining}</span></td>
+ {else}
+ <td align="right">{$i18n.form.time.remaining_balance}: <span style="color: red;">{$balance_remaining}</span></td>
+ {/if}
+ </tr>
+ <tr>
+ <td align="left">{$i18n.label.quota}: {$month_quota}</td>
{if $over_quota}
<td align="right">{$i18n.form.time.over_quota}: <span style="color: green;">{$quota_remaining}</span></td>
{else}
</tr>
{/if}
</table>
-{/if}
+
{$forms.timeRecordForm.close}