X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Finvoice_view.tpl;h=6441b44dbf58e79847746095a5d70befb8a902c4;hb=957db67a316e7ab82eee99fb0698186bf4b4c589;hp=1ff5c834a272bdf1b9b09618623bb154c0ab5702;hpb=6856837ddde5cc90ac5dad2e5d67204036ec3158;p=timetracker.git
diff --git a/WEB-INF/templates/invoice_view.tpl b/WEB-INF/templates/invoice_view.tpl
index 1ff5c834..6441b44d 100644
--- a/WEB-INF/templates/invoice_view.tpl
+++ b/WEB-INF/templates/invoice_view.tpl
@@ -20,29 +20,35 @@
- {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_project}
{/if}
- {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_task}
{/if}
+ {if $user->isPluginEnabled('ps')}
+
+ {/if}
{foreach $invoice_items as $invoice_item}
{$invoice_item.date} |
{$invoice_item.user_name|escape} |
- {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_project}
{$invoice_item.project_name|escape} |
{/if}
- {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_task}
{$invoice_item.task_name|escape} |
{/if}
{$invoice_item.note|escape} |
{$invoice_item.duration} |
{$invoice_item.cost} |
+ {if $user->isPluginEnabled('ps')}
+ {if $invoice_item.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {/if}
{/foreach}
|
@@ -61,6 +67,20 @@
{$total|escape} |
+
+ {$forms.invoiceForm.open}
+ {if $user->isPluginEnabled('ps')}
+
+
+
+
+ {$i18n.label.mark_paid}: {$forms.invoiceForm.mark_paid_action_options.control} {$forms.invoiceForm.btn_mark_paid.control} |
+
+ |
+
+
+ {/if}
+ {$forms.invoiceForm.close}
{/if}