X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Finvoices.tpl;h=5960790c116689c2d29ddb6cb406ae14334f5825;hb=13cfff28242767287408e8fd13d992bc6c6e2086;hp=32d09544fb213a4b8c39ddc328d852fd89ba7170;hpb=cdb0911b4f72d4bb1df7cd82f2bce0d9ab1579b0;p=timetracker.git diff --git a/WEB-INF/templates/invoices.tpl b/WEB-INF/templates/invoices.tpl index 32d09544..5960790c 100644 --- a/WEB-INF/templates/invoices.tpl +++ b/WEB-INF/templates/invoices.tpl @@ -5,7 +5,7 @@
-{if $user->canManageTeam() || $user->isClient()} +{if $user->can('manage_invoices') || $user->can('view_client_invoices')} @@ -14,22 +14,20 @@ {if $user->isPluginEnabled('ps')} {/if} - {if !$user->isClient()} - + {/if} {foreach $invoices as $invoice} - + {if $user->isPluginEnabled('ps')} {/if} - {if !$user->isClient()} - + {/if} {/foreach}
{$i18n.label.invoice}{$i18n.label.paid}{$i18n.label.view}{$i18n.label.delete}
{$invoice.name|escape}{$invoice.name|escape} {$invoice.client_name|escape} {$invoice.date}{if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{$i18n.label.view}{$i18n.label.delete}{$i18n.label.delete}