projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added more access control checks to mobile pages.
[timetracker.git]
/
WEB-INF
/
templates
/
reports.tpl
diff --git
a/WEB-INF/templates/reports.tpl
b/WEB-INF/templates/reports.tpl
index
b5db6d3
..
ce804dc
100644
(file)
--- a/
WEB-INF/templates/reports.tpl
+++ b/
WEB-INF/templates/reports.tpl
@@
-149,7
+149,7
@@
function handleCheckboxes() {
{$forms.reportForm.open}
<div style="padding: 0 0 10 0;">
{$forms.reportForm.open}
<div style="padding: 0 0 10 0;">
- <table border="0"
bgcolor="#efefef" width="720
">
+ <table border="0"
class="divider
">
<tr>
<td>
<table cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<table cellspacing="1" cellpadding="3" border="0">
@@
-197,7
+197,7
@@
function handleCheckboxes() {
{/if}
</tr>
{/if}
{/if}
</tr>
{/if}
-{if
in_array('iv', explode(',', $user->plugins)
)}
+{if
$user->isPluginEnabled('iv'
)}
<tr>
<td><b>{$i18n.form.time.billable}</b></td>
<td> </td>
<tr>
<td><b>{$i18n.form.time.billable}</b></td>
<td> </td>
@@
-236,12
+236,12
@@
function handleCheckboxes() {
<tr>
<td colspan="3">
<table border="0" width="100%">
<tr>
<td colspan="3">
<table border="0" width="100%">
-{if $user->isPluginEnabled('cl') ||
in_array('iv', explode(',', $user->plugins)
)}
+{if $user->isPluginEnabled('cl') ||
$user->isPluginEnabled('iv'
)}
<tr>
{if $user->isPluginEnabled('cl')}
<td width="25%"><label>{$forms.reportForm.chclient.control} {$i18n.label.client}</label></td>
{/if}
<tr>
{if $user->isPluginEnabled('cl')}
<td width="25%"><label>{$forms.reportForm.chclient.control} {$i18n.label.client}</label></td>
{/if}
- {if ($user->canManageTeam() || $user->isClient()) &&
in_array('iv', explode(',', $user->plugins)
)}
+ {if ($user->canManageTeam() || $user->isClient()) &&
$user->isPluginEnabled('iv'
)}
<td width="25%"><label>{$forms.reportForm.chinvoice.control} {$i18n.label.invoice}</label></td>
{/if}
</tr>
<td width="25%"><label>{$forms.reportForm.chinvoice.control} {$i18n.label.invoice}</label></td>
{/if}
</tr>
@@
-278,7
+278,7
@@
function handleCheckboxes() {
</table>
<div style="padding: 10 0 10 0;">
</table>
<div style="padding: 10 0 10 0;">
- <table border="0"
bgcolor="#efefef" width="720
">
+ <table border="0"
class="divider
">
<tr>
<td align="center">
<table cellspacing="1" cellpadding="3" border="0">
<tr>
<td align="center">
<table cellspacing="1" cellpadding="3" border="0">