X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Freports.tpl;h=af674785eb1d4fff921ee3356e129255840eefe3;hb=6072ff00f2f58e59e2e1138771038b42bc9f32aa;hp=640a55ca70d4d270a22179aa370728c8e5c2a5b5;hpb=6756191f98a9812d075dc2fae455921b1a09d850;p=timetracker.git diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index 640a55ca..af674785 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -201,13 +201,17 @@ function handleCheckboxes() { {$i18n.form.time.billable}   + {if $user->can('manage_invoices')} {$i18n.label.invoice} + {/if} {$forms.reportForm.include_records.control}   + {if $user->can('manage_invoices')} {$forms.reportForm.invoice.control} + {/if} {/if} {if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} @@ -217,7 +221,7 @@ function handleCheckboxes() { {$forms.reportForm.paid_status.control} {/if} -{if $user->canManageTeam() || $user->isClient()} +{if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()} {$i18n.label.users} @@ -244,18 +248,18 @@ function handleCheckboxes() { -{if $user->canManageTeam() || $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')} +{if $user->can('view_reports') || $user->can('view_all_reports') || $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')} {if $user->isPluginEnabled('cl')} {/if} - {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')} + {if ($user->can('manage_invoices') || $user->isClient()) && $user->isPluginEnabled('iv')} {/if} - {if ($user->canManageTeam() && $user->isPluginEnabled('ps'))} + {if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} {/if} - {if $user->canManageTeam()} + {if $user->can('view_reports') || $user->can('view_all_reports')} {/if} @@ -280,6 +284,14 @@ function handleCheckboxes() { {/if} +{if $user->isPluginEnabled('wu')} + + + + + + +{/if}
@@ -287,7 +299,7 @@ function handleCheckboxes() { {$i18n.form.reports.group_by} - {$forms.reportForm.group_by.control} + {$forms.reportForm.group_by.control}