X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fweek.tpl;h=7c59f5b3b89c0676b82cef673ab0c8b48a19334f;hb=a94cf5b21ee9cc76ff7dda42563444011800f462;hp=0d279ec6b7de5edad94988621007afa2aa7cf854;hpb=bdbadef4880db22d573cc3f154af3eb833942d56;p=timetracker.git diff --git a/WEB-INF/templates/week.tpl b/WEB-INF/templates/week.tpl index 0d279ec6..7c59f5b3 100644 --- a/WEB-INF/templates/week.tpl +++ b/WEB-INF/templates/week.tpl @@ -8,13 +8,11 @@ {$forms.weekTimeForm.open} -{if defined(WEEK_VIEW_DEBUG)} -{/if} @@ -39,70 +72,86 @@
{$i18n.label.day_view} / {$i18n.label.week_view}
@@ -23,6 +21,41 @@ +{/if} +{if $user->isPluginEnabled('cl')} + + + + +{/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.user}: {$forms.weekTimeForm.onBehalfUser.control}
{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/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.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 ($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('cf') || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} - + {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} + + {/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 ($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} + + + {/foreach} - - {if ($user->isPluginEnabled('cl') || ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode))} - - {/if} - {if ($user->isPluginEnabled('cf') || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} - - {/if} - - - - - - - -
{$i18n.label.date}{$i18n.label.client}{$i18n.label.project}{$i18n.label.task}{$i18n.label.start}{$i18n.label.finish}{$day_header_0}{$day_header_1}{$day_header_2}{$day_header_3}{$day_header_4}{$day_header_5}{$day_header_6}{$i18n.label.duration}{$i18n.label.note}{$i18n.label.edit}
{$record.project|escape}

{$record.client|escape}

{$record.date}{$record.client|escape}{$record.task|escape}

{$record.cf_1_value|escape}

{$record.project|escape}{$record.$date_0.duration}{$record.$date_1.duration}{$record.$date_2.duration}{$record.$date_3.duration}{$record.$date_4.duration}{$record.$date_5.duration}{$record.$date_6.duration}{$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} + {if $record.invoice_id} +   + {else} + {$i18n.label.edit} + {if ($record.duration == '0:00' && $record.start <> '')} + + + + + {/if} + {/if} +
{$grouped_records_totals.$date_0}{$grouped_records_totals.$date_1}{$grouped_records_totals.$date_2}{$grouped_records_totals.$date_3}{$grouped_records_totals.$date_4}{$grouped_records_totals.$date_5}{$grouped_records_totals.$date_6}
{/if}
- - - - - -
{$forms.weekTimeForm.btn_submit.control}
{$forms.weekTimeForm.close}