X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftimesheets.tpl;h=a5e893e59a4994c95323c833827cdd999aa33b25;hb=b53f880dcd61797fd2e6609477add03ca757d813;hp=626065846423b0d7d5f225326eff6028ca292f5d;hpb=53dd9ed078fdb70af2f24564145873e2346e5f28;p=timetracker.git diff --git a/WEB-INF/templates/timesheets.tpl b/WEB-INF/templates/timesheets.tpl index 62606584..a5e893e5 100644 --- a/WEB-INF/templates/timesheets.tpl +++ b/WEB-INF/templates/timesheets.tpl @@ -2,43 +2,106 @@ function chLocation(newLocation) { document.location = newLocation; } +{$forms.timesheetsForm.open} +{if $user_dropdown} + +{/if}
{$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 $show_files} + +{/if} + + - {foreach $timesheets as $timesheet} +{foreach $active_timesheets as $timesheet} - - - - {if $user->isPluginEnabled('ps')} - + + {if $show_client} + + {/if} + + {if $timesheet.approve_status == null} + + {else} + {/if} - - {if !$user->isClient()} - + {if $show_files} + {if $timesheet.has_files} + + {else} + + {/if} {/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.view}{$i18n.label.submitted}{$i18n.label.approved}
{$invoice.name|escape}{$invoice.client_name|escape}{$invoice.date}{if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{$timesheet.name|escape}{$timesheet.client_name|escape}{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{$i18n.label.view}{$i18n.label.delete}{$i18n.label.files}{$i18n.label.files}{$i18n.label.edit}{$i18n.label.delete}
- {if !$user->isClient()} - +


+ +{if $inactive_timesheets} + + + + + + {if $show_client} + + {/if} + + + {if $show_files} + {/if} + + + + {foreach $inactive_timesheets as $timesheet} + + + {if $show_client} + + {/if} + + {if $timesheet.approve_status == null} + + {else} + + {/if} + {if $show_files} + {if $timesheet.has_files} + + {else} + + {/if} + {/if} + + + + {/foreach} +
{$i18n.form.timesheets.inactive_timesheets}
{$i18n.label.thing_name}{$i18n.label.client}{$i18n.label.submitted}{$i18n.label.approved}
{$timesheet.name|escape}{$timesheet.client_name|escape}{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{$i18n.label.files}{$i18n.label.files}{$i18n.label.edit}{$i18n.label.delete}
+ + + +

{/if}
+{$forms.timesheetsForm.close}