X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Freports.tpl;h=b57ba8410de156957fe58fdcb08c401d5081d8ae;hb=c5c7ed2be4f41e34e63ee90158f499a6f76a76c1;hp=2ee48b01d8698bf32c451c771159e06c7e63a163;hpb=80c2a0fe0070ccf817ab5cb2d55c9d3b64f7bb3e;p=timetracker.git diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index 2ee48b01..b57ba841 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -201,15 +201,19 @@ 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->canManageTeam() && $user->isPluginEnabled('ps'))} +{if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} {$i18n.label.paid_status} @@ -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} @@ -264,7 +268,7 @@ function handleCheckboxes() { -{if (($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex'))} +{if ($user->can('manage_invoices') || $user->isClient()) || $user->isPluginEnabled('ex')} {else} @@ -280,6 +284,14 @@ function handleCheckboxes() { {/if} +{if $user->isPluginEnabled('wu')} + + + + + + +{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}{/if} {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if}