X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fexpenses.tpl;h=11b4fb85a4af8b97fbdef66c572fc32913637593;hb=a1f560292f6ce8999022da19b9d487636bf93769;hp=17b8c8fb55d8b9b4027037609d7c01e4ff98e493;hpb=03e3d32869aa0791e1d841be69cf5c0c84a5450f;p=timetracker.git
diff --git a/WEB-INF/templates/expenses.tpl b/WEB-INF/templates/expenses.tpl
index 17b8c8fb..11b4fb85 100644
--- a/WEB-INF/templates/expenses.tpl
+++ b/WEB-INF/templates/expenses.tpl
@@ -129,7 +129,7 @@ function recalculateCost() {
{$forms.expensesForm.client.control} |
{/if}
-{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+{if $show_project}
{$i18n.label.project} (*): |
{$forms.expensesForm.project.control} |
@@ -151,7 +151,7 @@ function recalculateCost() {
{$i18n.label.cost} (*): |
- {$forms.expensesForm.cost.control} {$user->currency|escape} |
+ {$forms.expensesForm.cost.control} {$user->getCurrency()|escape} |
@@ -178,7 +178,7 @@ function recalculateCost() {
{if $user->isPluginEnabled('cl')}
{/if}
- {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_project}
{/if}
@@ -190,12 +190,18 @@ function recalculateCost() {
{if $user->isPluginEnabled('cl')}
{$item.client|escape} |
{/if}
- {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_project}
{$item.project|escape} |
{/if}
{$item.item|escape} |
{$item.cost} |
- {if $item.invoice_id} {else}{$i18n.label.edit}{/if} |
+
+ {if $item.approved || $item.invoice_id}
+
+ {else}
+ {$i18n.label.edit}
+ {/if}
+ |
{/foreach}