X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Freports.tpl;h=ce804dc575fcdb601ce10cba3b7e6902a8f15257;hb=ee49ee74b2a7d3c6daaa2d4bc6397b0c89e3099b;hp=696142bf4b25c88b7e0b094c52e9f5f7df103993;hpb=05e0f5266a2959a452adfcae9d53c9729d3a3668;p=timetracker.git diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index 696142bf..ce804dc5 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -149,7 +149,7 @@ function handleCheckboxes() { {$forms.reportForm.open}
- +
@@ -167,9 +167,9 @@ function handleCheckboxes() {
-{if ((in_array('cl', explode(',', $user->plugins)) && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))} +{if (($user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))} - {if in_array('cl', explode(',', $user->plugins)) && !($user->isClient() && $user->client_id)}{else}{/if} + {if $user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)}{else}{/if} {if ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN)}{else}{/if} @@ -197,7 +197,7 @@ function handleCheckboxes() { {/if} {/if} -{if in_array('iv', explode(',', $user->plugins))} +{if $user->isPluginEnabled('iv')} @@ -236,12 +236,12 @@ function handleCheckboxes() {
{$i18n.label.client} {$i18n.label.client}  {$i18n.label.option} 
{$i18n.form.time.billable}  
-{if in_array('cl', explode(',', $user->plugins)) || in_array('iv', explode(',', $user->plugins))} +{if $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv')} - {if in_array('cl', explode(',', $user->plugins))} + {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} @@ -278,7 +278,7 @@ function handleCheckboxes() {
- +