X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Finvoices.tpl;h=b966f9e247e81c01bf29489ddf315371c7bbd43b;hb=6d706063e2f1c0555844c381ee98bd5a4a457d4e;hp=4d6f50a90a82f0797a0656f32883df9420f617cf;hpb=7ece3d4c1cf7c91fc469373a6b8a997fd4ea3398;p=timetracker.git
diff --git a/WEB-INF/templates/invoices.tpl b/WEB-INF/templates/invoices.tpl
index 4d6f50a9..b966f9e2 100644
--- a/WEB-INF/templates/invoices.tpl
+++ b/WEB-INF/templates/invoices.tpl
@@ -5,22 +5,28 @@
-{if $user->canManageTeam() || $user->isClient()}
+{if $user->can('manage_invoices') || $user->can('view_own_invoices')}
+ {if $user->isPluginEnabled('ps')}
+
+ {/if}
{if !$user->isClient()}
{/if}
{foreach $invoices as $invoice}
-
+
{$invoice.name|escape} |
{$invoice.client_name|escape} |
{$invoice.date} |
+ {if $user->isPluginEnabled('ps')}
+ {if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {/if}
{$i18n.label.view} |
{if !$user->isClient()}
{$i18n.label.delete} |
@@ -31,7 +37,7 @@
{if !$user->isClient()}
{/if}
{/if}
|