@@ -167,9 +180,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)}{$i18n.label.client} | {else} | {/if}
+ {if $user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)}{$i18n.label.client} | {else} | {/if}
|
{if ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN)}{$i18n.label.option} | {else} | {/if}
@@ -197,19 +210,31 @@ function handleCheckboxes() {
{/if}
{/if}
-{if in_array('iv', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('iv')}
{$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'))}
+
+ {$i18n.label.paid_status} |
+
+
+ {$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} |
@@ -236,13 +261,19 @@ function handleCheckboxes() {
-{if in_array('cl', explode(',', $user->plugins)) || in_array('iv', explode(',', $user->plugins))}
+{if $user->can('view_reports') || $user->can('view_all_reports') || $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')}
- {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->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 +281,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 ((($user->canManageTeam() || $user->isClient()) || in_array('ex', explode(',', $user->plugins))) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))}
+{if ($user->can('manage_invoices') || $user->isClient()) || $user->isPluginEnabled('ex')}
|
{else}
|
@@ -261,24 +292,37 @@ function handleCheckboxes() {
{if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if} |
|
{if ($custom_fields && $custom_fields->fields[0])}
- |
+ |
{else}
|
{/if}
+{if $user->isPluginEnabled('wu')}
+
+ |
+ |
+ |
+ |
+
+{/if}
|
- {$i18n.form.reports.group_by} |
+ {$i18n.form.reports.group_by} |
- {$forms.reportForm.group_by.control} |
+ {$forms.reportForm.group_by1.control} |
+ {$forms.reportForm.group_by2.control} |
+ {$forms.reportForm.group_by3.control} |
+
+
+ |
| |