X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftimesheets.tpl;h=f9b89d79272f62fe7b31953273c35b1128750073;hb=e5486346ac0574517a4fd118f03616ec455df9a9;hp=796f2720796ab125ac5cc898de42355d793c709f;hpb=b33cf8ebaf54882a2238b660ba07936301077695;p=timetracker.git diff --git a/WEB-INF/templates/timesheets.tpl b/WEB-INF/templates/timesheets.tpl index 796f2720..f9b89d79 100644 --- a/WEB-INF/templates/timesheets.tpl +++ b/WEB-INF/templates/timesheets.tpl @@ -2,38 +2,101 @@ function chLocation(newLocation) { document.location = newLocation; } +{$forms.timesheetsForm.open} +{if $not_client} + +{/if} +{if $user_dropdown} + +{/if}
{$i18n.form.timesheets.hint}
{$i18n.label.user}: {$forms.timesheetsForm.user.control}
-{if $user->can('manage_invoices') || $user->can('view_own_invoices')} - +{if $inactive_timesheets} + +{/if} - {if $user->isPluginEnabled('cl')} +{if $show_client} - {/if} - - +{/if} +{if $not_client} + + +{/if} +{if $can_edit} + +{/if} - {foreach $timesheets as $timesheet} +{foreach $active_timesheets as $timesheet} + {if $show_client} - - {if $user->isPluginEnabled('ps')} - {/if} - - {if !$user->isClient()} - + {if $not_client} + + {if $timesheet.approval_status == null} + + {else} + + {/if} + {/if} + + {if $can_edit} + {/if} - {/foreach} +{/foreach} +
{$i18n.form.timesheets.hint}
{$i18n.form.timesheets.active_timesheets}
{$i18n.label.thing_name}{$i18n.label.client}{$i18n.label.submitted}{$i18n.label.approved}{$i18n.label.submitted}{$i18n.label.approved}{$i18n.label.view}{$i18n.label.edit}
{$timesheet.name|escape}{$timesheet.client_name|escape}{$invoice.date}{if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{$i18n.label.view}{$i18n.label.delete}{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{$i18n.label.view}{$i18n.label.edit}
+{if $not_client} + +

+{/if} + +{if $inactive_timesheets} + - {if !$user->isClient()} + + + + {if $show_client} + + {/if} + {if $not_client} + + + {/if} + + {if $can_edit} + + {/if} + + {foreach $inactive_timesheets as $timesheet} + + + {if $show_client} + + {/if} + {if $not_client} + + {if $timesheet.approval_status == null} + + {else} + + {/if} + {/if} + + {if $can_edit} + + {/if} + + {/foreach} +
{$i18n.form.timesheets.inactive_timesheets}
{$i18n.label.thing_name}{$i18n.label.client}{$i18n.label.submitted}{$i18n.label.approved}{$i18n.label.view}{$i18n.label.edit}
{$timesheet.name|escape}{$timesheet.client_name|escape}{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{$i18n.label.view}{$i18n.label.edit}
+ {if $not_client}

@@ -42,3 +105,4 @@
+{$forms.timesheetsForm.close}