X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftime.tpl;h=e5a753fd0801c09feaa139c5fe35683d98aa47e6;hb=1c2cf98a7a062d53e6988f042da2530e1f5d172e;hp=d16101121a8df58c852ab80f047bd474f371d554;hpb=a781da5661a1932521e0d1feb4be340b97edce9a;p=timetracker.git diff --git a/WEB-INF/templates/time.tpl b/WEB-INF/templates/time.tpl index d1610112..e5a753fd 100644 --- a/WEB-INF/templates/time.tpl +++ b/WEB-INF/templates/time.tpl @@ -41,7 +41,7 @@ task_names = new Array(); empty_label_project = '{$i18n.dropdown.select|escape:'javascript'}'; empty_label_task = '{$i18n.dropdown.select|escape:'javascript'}'; -// The populateDropdowns function populates the "project" and "task" dropdown controls +// The fillDropdowns function populates the "project" and "task" dropdown controls // with relevant values. function fillDropdowns() { if(document.body.contains(document.timeRecordForm.client)) @@ -223,13 +223,13 @@ function get_time() { {$forms.timeRecordForm.onBehalfUser.control} {/if} -{if in_array('cl', explode(',', $user->plugins))} +{if $user->isPluginEnabled('cl')} - {$i18n.label.client}{if in_array('cm', explode(',', $user->plugins))} (*){/if}: + {$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}: {$forms.timeRecordForm.client.control} {/if} -{if in_array('iv', explode(',', $user->plugins))} +{if $user->isPluginEnabled('iv')}   @@ -294,7 +294,7 @@ function get_time() { {if $time_records} - {if in_array('cl', explode(',', $user->plugins))} + {if $user->isPluginEnabled('cl')} {/if} {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} @@ -313,7 +313,7 @@ function get_time() { {foreach $time_records as $record} - {if in_array('cl', explode(',', $user->plugins))} + {if $user->isPluginEnabled('cl')} {/if} {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} @@ -354,6 +354,16 @@ function get_time() { + {if $month_total} + + + {if $over_quota} + + {else} + + {/if} + + {/if}
{$i18n.label.client}
{$record.client|escape:'html'}{$i18n.label.week_total}: {$week_total} {$i18n.label.day_total}: {$day_total}
{$i18n.label.month_total}: {$month_total}{$i18n.label.month_over}: {$month_left}{$i18n.label.month_left}: {$month_left}
{/if} {$forms.timeRecordForm.close}