X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fweek.tpl;h=366762cfc32fa6ddfae6ca93e7596bf6308fc7b4;hb=8a671525046655e057a15c6de9507834322b466d;hp=d919fd143430fe608f7351038888d0a3f33186a0;hpb=f9c733be2744ccc1264291760aa9b02a3c861193;p=timetracker.git diff --git a/WEB-INF/templates/week.tpl b/WEB-INF/templates/week.tpl index d919fd14..366762cf 100644 --- a/WEB-INF/templates/week.tpl +++ b/WEB-INF/templates/week.tpl @@ -1,14 +1,29 @@ {include file="time_script.tpl"} + + -{$forms.timeRecordForm.open} +{$forms.weekTimeForm.open} -{if defined(WEEK_VIEW_DEBUG)} +{if $show_navigation} - + + +{/if} +{if $show_client} + + + + +{/if} +{if $user->isPluginEnabled('iv')} + + + + +{/if} +{if ($custom_fields && $custom_fields->fields[0])} + + + +{/if} +{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + + + + +{/if} +{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + + + + +{/if} +{if $user->isPluginEnabled('wvn')} + + + {/if}
{$i18n.label.day_view} / {$i18n.label.week_view} @@ -21,54 +36,140 @@ {if $on_behalf_control}
{$i18n.label.user}:{$forms.timeRecordForm.onBehalfUser.control}{$forms.weekTimeForm.onBehalfUser.control}
{$i18n.label.client}{if $user->isOptionEnabled('client_required')} (*){/if}:{$forms.weekTimeForm.client.control}
 
{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:{$forms.weekTimeForm.cf_1.control}
{$i18n.label.project} (*):{$forms.weekTimeForm.project.control}
{$i18n.label.task}:{$forms.weekTimeForm.task.control}
{$i18n.label.week_note}:{$forms.weekTimeForm.note.control}
- +
{$forms.timeRecordForm.date.control}
{$forms.weekTimeForm.date.control}
+ + + + +
{$forms.weekTimeForm.week_durations.control}
+ + + + + +
{$forms.weekTimeForm.btn_submit.control}
 
+ +{if $user->isPluginEnabled('wvl')}
-{if $grouped_records} +{if $time_records} - {if ($user->isPluginEnabled('cl') || ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode))} - + + {if $user->isPluginEnabled('cl')} + {/if} - {if ($user->isPluginEnabled('cf') || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} - + {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {/if} - - - - - - - + {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + + {/if} + {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} + + + {/if} + + + {if $show_files} + + {/if} + + - {foreach $grouped_records as $record} + {foreach $time_records as $record} - {if ($user->isPluginEnabled('cl') || ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode))} - + + {if $user->isPluginEnabled('cl')} + + {/if} + {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + + {/if} + {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + + {/if} + {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} + + {/if} - {if ($user->isPluginEnabled('cf') || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} - + + + {if $show_files} + {if $record.has_files} + + {else} + + {/if} {/if} - - - - - - - + + {/foreach}
{$i18n.label.date}{$i18n.label.client}{$i18n.label.project}{$day_header_0}{$day_header_1}{$day_header_2}{$day_header_3}{$day_header_4}{$day_header_5}{$day_header_6}{$i18n.label.task}{$i18n.label.start}{$i18n.label.finish}{$i18n.label.duration}{$i18n.label.note}
{$record.project|escape}

{$record.client|escape}

{$record.date}{$record.client|escape}{$record.project|escape}{$record.task|escape}{if $record.start}{$record.start}{else} {/if}{if $record.finish}{$record.finish}{else} {/if}{$record.task|escape}

{$record.cf_1_value|escape}

{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}{$record.$day_header_0.duration}{$record.$day_header_1.duration}{$record.$day_header_2.duration}{$record.$day_header_3.duration}{$record.$day_header_4.duration}{$record.$day_header_5.duration}{$record.$day_header_6.duration} + {if $record.approved || $record.timesheet_id || $record.invoice_id} +   + {else} + {$i18n.label.edit} + {if ($record.duration == '0:00' && $record.start <> '')} + + + + + {/if} + {/if} + + {if $record.approved || $record.timesheet_id || $record.invoice_id} +   + {else} + {$i18n.label.delete} + {/if} +
@@ -76,13 +177,16 @@
- - - - - -
{$forms.timeRecordForm.btn_submit.control}
-{$forms.timeRecordForm.close} +{$forms.weekTimeForm.close}