X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftime.tpl;h=2b67e1cbce18643006ed0b0149f0eb147c1afaf1;hb=75a1eedb8977b8f2db459128bab9aaf367e3b58b;hp=c03297a56fd3f5e57e822c26c631c99baa28673c;hpb=e25cf11c520c4e86bfd7d4f0944a146f0a21cf91;p=timetracker.git
diff --git a/WEB-INF/templates/time.tpl b/WEB-INF/templates/time.tpl
index c03297a5..2b67e1cb 100644
--- a/WEB-INF/templates/time.tpl
+++ b/WEB-INF/templates/time.tpl
@@ -24,7 +24,7 @@
{$forms.timeRecordForm.user.control} |
{/if}
-{if $user->isPluginEnabled('cl')}
+{if $show_client}
{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}: |
{$forms.timeRecordForm.client.control} |
@@ -41,29 +41,31 @@
{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}: | {$forms.timeRecordForm.cf_1.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.timeRecordForm.project.control} |
{/if}
-{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+{if $show_task}
{$i18n.label.task}{if $user->task_required} (*){/if}: |
{$forms.timeRecordForm.task.control} |
{/if}
-{if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
+{if $show_start}
{$i18n.label.start}: |
{$forms.timeRecordForm.start.control} |
+{/if}
+{if $show_finish}
{$i18n.label.finish}: |
{$forms.timeRecordForm.finish.control} |
{/if}
-{if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
+{if $show_duration}
{$i18n.label.duration}: |
{$forms.timeRecordForm.duration.control} {if $user->getDecimalMark() == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if} |
@@ -101,40 +103,65 @@
{if $time_records}
{/if}