X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Freports.tpl;h=af674785eb1d4fff921ee3356e129255840eefe3;hb=bd92aeb3404ed8625272abccc9a8766f13ab75e6;hp=bd5ab3f48e83265bde4e80ff86f7c79fcbce5532;hpb=0dfc4dda20c54e173938eaf196f8e071ce790830;p=timetracker.git diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index bd5ab3f4..af674785 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -149,7 +149,7 @@ function handleCheckboxes() { {$forms.reportForm.open}
- +
@@ -201,15 +201,27 @@ function handleCheckboxes() { + {if $user->can('manage_invoices')} + {/if} + {if $user->can('manage_invoices')} + {/if} +{/if} +{if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} + + + + + + {/if} -{if $user->canManageTeam() || $user->isClient()} +{if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()} @@ -236,13 +248,19 @@ function handleCheckboxes() { @@ -273,12 +299,12 @@ function handleCheckboxes() { - +
{$i18n.form.time.billable}  {$i18n.label.invoice}
{$forms.reportForm.include_records.control}  {$forms.reportForm.invoice.control}
{$i18n.label.paid_status}
{$forms.reportForm.paid_status.control}
{$i18n.label.users}
-{if $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv')} +{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->can('manage_invoices') && $user->isPluginEnabled('ps'))} + + {/if} + {if $user->can('view_reports') || $user->can('view_all_reports')} + {/if} {/if} @@ -250,7 +268,7 @@ function handleCheckboxes() { -{if ((($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex')) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))} +{if ($user->can('manage_invoices') || $user->isClient()) || $user->isPluginEnabled('ex')} {else} @@ -261,11 +279,19 @@ function handleCheckboxes() { {if ($custom_fields && $custom_fields->fields[0])} - + {else} {/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} {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if}
{$i18n.form.reports.group_by}
{$forms.reportForm.group_by.control} {$forms.reportForm.group_by.control}
- +