X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fweek.tpl;h=7c59f5b3b89c0676b82cef673ab0c8b48a19334f;hb=bf5ddc4f34213ffe75d6d601c16148a3fe506455;hp=6b35a621e7d4af7437a7f455688de8217da267be;hpb=532ab62cfa2895753eb599ab3b35c104ca344602;p=timetracker.git diff --git a/WEB-INF/templates/week.tpl b/WEB-INF/templates/week.tpl index 6b35a621..7c59f5b3 100644 --- a/WEB-INF/templates/week.tpl +++ b/WEB-INF/templates/week.tpl @@ -21,6 +21,41 @@ {$i18n.label.user}: {$forms.weekTimeForm.onBehalfUser.control} +{/if} +{if $user->isPluginEnabled('cl')} + + {$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}: + {$forms.weekTimeForm.client.control} + +{/if} +{if $user->isPluginEnabled('iv')} + +   + + +{/if} +{if ($custom_fields && $custom_fields->fields[0])} + + {$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:{$forms.weekTimeForm.cf_1.control} + +{/if} +{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + + {$i18n.label.project} (*): + {$forms.weekTimeForm.project.control} + +{/if} +{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + + {$i18n.label.task}: + {$forms.weekTimeForm.task.control} + +{/if} +{if $user->isPluginEnabled('wvn')} + + {$i18n.label.week_note}: + {$forms.weekTimeForm.note.control} + {/if} @@ -36,9 +71,97 @@ {$forms.weekTimeForm.week_durations.control} + + +
{$forms.weekTimeForm.btn_submit.control}
 
+ +{if $user->isPluginEnabled('wvl')} + + + +
+{if $time_records} + + + + {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} + + + + + {foreach $time_records as $record} + + + {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} + + + + + {/foreach} +
{$i18n.label.date}{$i18n.label.client}{$i18n.label.project}{$i18n.label.task}{$i18n.label.start}{$i18n.label.finish}{$i18n.label.duration}{$i18n.label.note}{$i18n.label.edit}
{$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}{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} +
+{/if} +
+{/if} + +{if $time_records} + + {if $user->isPluginEnabled('wvl')} + + + + + {/if} + {if $user->isPluginEnabled('mq')} + + + {if $over_quota} + + {else} + + {/if} + + {/if} +
{$i18n.label.week_total}: {$week_total}
{$i18n.label.month_total}: {$month_total}{$i18n.form.time.over_quota}: {$quota_remaining}{$i18n.form.time.remaining_quota}: {$quota_remaining}
+{/if} {$forms.weekTimeForm.close}