projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more refactoring.
[timetracker.git]
/
WEB-INF
/
templates
/
expenses.tpl
diff --git
a/WEB-INF/templates/expenses.tpl
b/WEB-INF/templates/expenses.tpl
index
17b8c8f
..
45a8ef2
100644
(file)
--- a/
WEB-INF/templates/expenses.tpl
+++ b/
WEB-INF/templates/expenses.tpl
@@
-129,7
+129,7
@@
function recalculateCost() {
<td>{$forms.expensesForm.client.control}</td>
</tr>
{/if}
<td>{$forms.expensesForm.client.control}</td>
</tr>
{/if}
-{if
($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)
}
+{if
$show_project
}
<tr>
<td align="right">{$i18n.label.project} (*):</td>
<td>{$forms.expensesForm.project.control}</td>
<tr>
<td align="right">{$i18n.label.project} (*):</td>
<td>{$forms.expensesForm.project.control}</td>
@@
-151,7
+151,7
@@
function recalculateCost() {
</tr>
<tr>
<td align="right">{$i18n.label.cost} (*):</td>
</tr>
<tr>
<td align="right">{$i18n.label.cost} (*):</td>
- <td>{$forms.expensesForm.cost.control} {$user->
currency
|escape}</td>
+ <td>{$forms.expensesForm.cost.control} {$user->
getCurrency()
|escape}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
@@
-178,7
+178,7
@@
function recalculateCost() {
{if $user->isPluginEnabled('cl')}
<td width="20%" class="tableHeader">{$i18n.label.client}</td>
{/if}
{if $user->isPluginEnabled('cl')}
<td width="20%" class="tableHeader">{$i18n.label.client}</td>
{/if}
- {if
($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)
}
+ {if
$show_project
}
<td class="tableHeader">{$i18n.label.project}</td>
{/if}
<td class="tableHeader">{$i18n.label.item}</td>
<td class="tableHeader">{$i18n.label.project}</td>
{/if}
<td class="tableHeader">{$i18n.label.item}</td>
@@
-190,7
+190,7
@@
function recalculateCost() {
{if $user->isPluginEnabled('cl')}
<td valign="top">{$item.client|escape}</td>
{/if}
{if $user->isPluginEnabled('cl')}
<td valign="top">{$item.client|escape}</td>
{/if}
- {if
($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)
}
+ {if
$show_project
}
<td valign="top">{$item.project|escape}</td>
{/if}
<td valign="top">{$item.item|escape}</td>
<td valign="top">{$item.project|escape}</td>
{/if}
<td valign="top">{$item.item|escape}</td>