X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Freport.tpl;h=3cd8e40ec8d5961a7a55073bcbe50bb99e0d1bd7;hb=a3d07d9fe0c01738c69c6ea37220f3feb4395912;hp=55438428ce93698af079e9ded3a1581b7de3fd3b;hpb=6968ef66a0264c35eff9bdd8ed92af48b34b8d19;p=timetracker.git diff --git a/WEB-INF/templates/report.tpl b/WEB-INF/templates/report.tpl index 55438428..3cd8e40e 100644 --- a/WEB-INF/templates/report.tpl +++ b/WEB-INF/templates/report.tpl @@ -2,7 +2,7 @@ function chLocation(newLocation) { document.location = newLocation; } -{$forms.reportForm.open} +{$forms.reportViewForm.open}
@@ -62,11 +62,11 @@ {if $cur_grouped_by != $prev_grouped_by && !$first_pass} {/if}{/if} - {if $bean->getAttribute('chclient')}{/if}{/if} - {if $bean->getAttribute('chproject')}{/if}{/if} - {if $bean->getAttribute('chtask')}{/if}{/if} - {if $bean->getAttribute('chcf_1')}{/if}{/if} + {if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}{/if} + {if $bean->getAttribute('chclient')}{/if} + {if $bean->getAttribute('chproject')}{/if} + {if $bean->getAttribute('chtask')}{/if} + {if $bean->getAttribute('chcf_1')}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')}{/if} {if $bean->getAttribute('chduration')}{/if} @@ -114,11 +114,11 @@ {if $print_subtotals} {/if}{/if} - {if $bean->getAttribute('chclient')}{/if}{/if} - {if $bean->getAttribute('chproject')}{/if}{/if} - {if $bean->getAttribute('chtask')}{/if}{/if} - {if $bean->getAttribute('chcf_1')}{/if}{/if} + {if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}{/if} + {if $bean->getAttribute('chclient')}{/if} + {if $bean->getAttribute('chproject')}{/if} + {if $bean->getAttribute('chtask')}{/if} + {if $bean->getAttribute('chcf_1')}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')}{/if} {if $bean->getAttribute('chduration')}{/if} @@ -162,7 +162,7 @@ @@ -171,14 +171,14 @@ {/if}
{$i18n.label.subtotal} - {if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}{if $group_by == 'user'}{$subtotals[$prev_grouped_by]['name']|escape}{if $group_by == 'client'}{$subtotals[$prev_grouped_by]['name']|escape}{if $group_by == 'project'}{$subtotals[$prev_grouped_by]['name']|escape}{if $group_by == 'task'}{$subtotals[$prev_grouped_by]['name']|escape}{if $group_by == 'cf_1'}{$subtotals[$prev_grouped_by]['name']|escape}{$subtotals[$prev_grouped_by]['user']|escape}{$subtotals[$prev_grouped_by]['client']|escape}{$subtotals[$prev_grouped_by]['project']|escape}{$subtotals[$prev_grouped_by]['task']|escape}{$subtotals[$prev_grouped_by]['cf_1']|escape}{$subtotals[$prev_grouped_by]['time']}
{$i18n.label.subtotal} - {if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}{if $group_by == 'user'}{$subtotals[$cur_grouped_by]['name']|escape}{if $group_by == 'client'}{$subtotals[$cur_grouped_by]['name']|escape}{if $group_by == 'project'}{$subtotals[$cur_grouped_by]['name']|escape}{if $group_by == 'task'}{$subtotals[$cur_grouped_by]['name']|escape}{if $group_by == 'cf_1'}{$subtotals[$cur_grouped_by]['name']|escape}{$subtotals[$cur_grouped_by]['user']|escape}{$subtotals[$cur_grouped_by]['client']|escape}{$subtotals[$cur_grouped_by]['project']|escape}{$subtotals[$cur_grouped_by]['task']|escape}{$subtotals[$cur_grouped_by]['cf_1']|escape}{$subtotals[$cur_grouped_by]['time']}
- +
{$i18n.label.mark_paid}: {$forms.reportForm.mark_paid_select_options.control} {$forms.reportForm.mark_paid_action_options.control} {$forms.reportForm.btn_mark_paid.control}
{$i18n.label.mark_paid}: {$forms.reportViewForm.mark_paid_select_options.control} {$forms.reportViewForm.mark_paid_action_options.control} {$forms.reportViewForm.btn_mark_paid.control}
- +
{$i18n.form.report.assign_to_invoice}: {$forms.reportForm.assign_invoice_select_options.control} {$forms.reportForm.recent_invoice.control} {$forms.reportForm.btn_assign.control}
{$i18n.form.report.assign_to_invoice}: {$forms.reportViewForm.assign_invoice_select_options.control} {$forms.reportViewForm.recent_invoice.control} {$forms.reportViewForm.btn_assign.control}
{/if} -{$forms.reportForm.close} +{$forms.reportViewForm.close} @@ -186,6 +186,9 @@
+{if $can_create_timesheet} + +{/if}