X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Freports.tpl;h=2ee48b01d8698bf32c451c771159e06c7e63a163;hb=e02d7592b0556895e35f4d028939197c132f6b09;hp=b5db6d3b646f045887604c05a1a7d8cd442b2444;hpb=2a998c95dd9e86a9ad57939b056b62cab7402b08;p=timetracker.git diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index b5db6d3b..2ee48b01 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -149,7 +149,7 @@ function handleCheckboxes() { {$forms.reportForm.open}
- +
@@ -197,7 +197,7 @@ function handleCheckboxes() { {/if} {/if} -{if in_array('iv', explode(',', $user->plugins))} +{if $user->isPluginEnabled('iv')} @@ -209,6 +209,14 @@ function handleCheckboxes() { {/if} +{if ($user->canManageTeam() && $user->isPluginEnabled('ps'))} + + + + + + +{/if} {if $user->canManageTeam() || $user->isClient()} @@ -236,13 +244,19 @@ function handleCheckboxes() {
{$i18n.form.time.billable}  {$forms.reportForm.invoice.control}
{$i18n.label.paid_status}
{$forms.reportForm.paid_status.control}
{$i18n.label.users}
-{if $user->isPluginEnabled('cl') || in_array('iv', explode(',', $user->plugins))} +{if $user->canManageTeam() || $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')} {if $user->isPluginEnabled('cl')} {/if} - {if ($user->canManageTeam() || $user->isClient()) && in_array('iv', explode(',', $user->plugins))} + {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')} + {/if} + {if ($user->canManageTeam() && $user->isPluginEnabled('ps'))} + + {/if} + {if $user->canManageTeam()} + {/if} {/if} @@ -250,7 +264,7 @@ function handleCheckboxes() { -{if ((($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex')) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))} +{if (($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex'))} {else} @@ -261,7 +275,7 @@ function handleCheckboxes() { {if ($custom_fields && $custom_fields->fields[0])} - + {else} {/if} @@ -278,7 +292,7 @@ function handleCheckboxes() {
{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}
- +