X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftime.tpl;h=0dcfd107971f14d8094797da317329022a24b09e;hb=a26a0989ad93cce9de9f45312990da9610e53045;hp=0e05f05bc8b86ba69f97bfecde6196c80c84089a;hpb=948617a6a0f129ba4090934ee8f544009dbcd935;p=timetracker.git diff --git a/WEB-INF/templates/time.tpl b/WEB-INF/templates/time.tpl index 0e05f05b..0dcfd107 100644 --- a/WEB-INF/templates/time.tpl +++ b/WEB-INF/templates/time.tpl @@ -8,7 +8,7 @@ {$forms.timeRecordForm.open} -{if $user->isPluginEnabled('wv')} +{if $show_navigation}
{$i18n.label.day_view} / {$i18n.label.week_view} @@ -18,19 +18,13 @@
-{if $on_behalf_group_control} - - - - -{/if} -{if $on_behalf_control} +{if $user_dropdown} - + {/if} -{if $user->isPluginEnabled('cl')} +{if $show_client} @@ -47,32 +41,46 @@ {/if} -{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} +{if $show_project} {/if} -{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} +{if $show_task} {/if} -{if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} +{if $show_start} +{/if} +{if $show_finish} {/if} -{if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} +{if $show_duration} - + + +{/if} +{if $show_files} + + + + +{/if} +{if $template_dropdown} + + + {/if}
{$i18n.label.group}:{$forms.timeRecordForm.onBehalfGroup.control}
{$i18n.label.user}:{$forms.timeRecordForm.onBehalfUser.control}{$forms.timeRecordForm.user.control}
{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}: {$forms.timeRecordForm.client.control}{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:{$forms.timeRecordForm.cf_1.control}
{$i18n.label.project} (*): {$forms.timeRecordForm.project.control}
{$i18n.label.task}{if $user->task_required} (*){/if}: {$forms.timeRecordForm.task.control}
{$i18n.label.start}: {$forms.timeRecordForm.start.control} 
{$i18n.label.finish}: {$forms.timeRecordForm.finish.control} 
{$i18n.label.duration}:{$forms.timeRecordForm.duration.control} {if $user->decimal_mark == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}{$forms.timeRecordForm.duration.control} {if $user->getDecimalMark() == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}
{$i18n.label.file}:{$forms.timeRecordForm.newfile.control}
{$i18n.label.template}:{$forms.timeRecordForm.template.control}
@@ -101,45 +109,70 @@ {if $time_records} - {if $user->isPluginEnabled('cl')} - + {if $show_client} + + {/if} + {if $show_cf_1} + {/if} - {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_project} {/if} - {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_task} {/if} - {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} + {if $show_start} + {/if} + {if $show_finish} {/if} + {if $show_note_column} - + {/if} + {if $show_files} + + {/if} + + {foreach $time_records as $record} - {if $user->isPluginEnabled('cl')} + {if $show_client} {/if} - {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_cf_1} + + {/if} + {if $show_project} {/if} - {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_task} {/if} - {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} + {if $show_start} + {/if} + {if $show_finish} {/if} + {if $show_note_column} + {/if} + {if $show_files} + {if $record.has_files} + + {else} + + {/if} + {/if} + + + {if $show_note_row && $record.comment} + + + + {/if} {/foreach}
{$i18n.label.client}{$i18n.label.client}{$custom_fields->fields[0]['label']|escape}{$i18n.label.project}{$i18n.label.task}{$i18n.label.start}{$i18n.label.finish}{$i18n.label.duration}{$i18n.label.note}{$i18n.label.edit}
{$record.client|escape}{$record.cf_1|escape}{$record.project|escape}{$record.task|escape}{if $record.start}{$record.start}{else} {/if}{if $record.finish}{$record.finish}{else} {/if}{if ($record.duration == '0:00' && $record.start <> '')}{$i18n.form.time.uncompleted}{else}{$record.duration}{/if}{if $record.comment}{$record.comment|escape}{else} {/if}{$i18n.label.files}{$i18n.label.files} - {if $record.invoice_id} + {if $record.approved || $record.timesheet_id || $record.invoice_id}   {else} - {$i18n.label.edit} + {$i18n.label.edit} {if ($record.duration == '0:00' && $record.start <> '')} @@ -148,14 +181,27 @@ {/if} {/if} + {if $record.approved || $record.timesheet_id || $record.invoice_id} +   + {else} + {$i18n.label.delete} + {/if} +
{$i18n.label.note}:{$record.comment|escape}
{/if}
-{if $time_records} + @@ -164,6 +210,14 @@ {if $user->isPluginEnabled('mq')} + {if $over_balance} + + {else} + + {/if} + + + {if $over_quota} {else} @@ -172,5 +226,5 @@ {/if}
{$i18n.label.week_total}: {$week_total}
{$i18n.label.month_total}: {$month_total}{$i18n.form.time.over_balance}: {$balance_remaining}{$i18n.form.time.remaining_balance}: {$balance_remaining}
{$i18n.label.quota}: {$month_quota}{$i18n.form.time.over_quota}: {$quota_remaining}
-{/if} + {$forms.timeRecordForm.close}