X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Ftime.tpl;h=e32140a9254ecc3c1d6dde4c5cc52f07a3c323d7;hb=9c1005341a3db52333fcb732960acbdf03fbe4e7;hp=e531d2b6e2184cfb34faa869182580e92106f613;hpb=f6c2f33e3183019686f07aa93ff880f3a009d6eb;p=timetracker.git
diff --git a/WEB-INF/templates/time.tpl b/WEB-INF/templates/time.tpl
index e531d2b6..e32140a9 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,34 +41,42 @@
{$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} |
{/if}
+{if $show_files}
+
+ {$i18n.label.file}: |
+ {$forms.timeRecordForm.newfile.control} |
+
+{/if}
{if $template_dropdown}
{$i18n.label.template}: |
@@ -101,44 +109,58 @@
{if $time_records}
- {if $user->isPluginEnabled('cl')}
-
+ {if $show_client}
+
+ {/if}
+ {if $show_cf_1}
+
{/if}
- {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_project}
{/if}
- {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_task}
{/if}
- {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
+ {if $show_start}
+ {/if}
+ {if $show_finish}
{/if}
+ {if $show_note_column}
- |
- |
+ {/if}
{if $show_files}
|
{/if}
+ |
+ |
{foreach $time_records as $record}
- {if $user->isPluginEnabled('cl')}
+ {if $show_client}
{$record.client|escape} |
{/if}
- {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_cf_1}
+ {$record.cf_1|escape} |
+ {/if}
+ {if $show_project}
{$record.project|escape} |
{/if}
- {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if $show_task}
{$record.task|escape} |
{/if}
- {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
+ {if $show_start}
{if $record.start}{$record.start}{else} {/if} |
+ {/if}
+ {if $show_finish}
{if $record.finish}{$record.finish}{else} {/if} |
{/if}
{if ($record.duration == '0:00' && $record.start <> '')}{$i18n.form.time.uncompleted}{else}{$record.duration}{/if} |
+ {if $show_note_column}
{if $record.comment}{$record.comment|escape}{else} {/if} |
+ {/if}
{if $show_files}
{if $record.has_files}
|
@@ -167,6 +189,12 @@
{/if}
+ {if $show_note_row && $record.comment}
+
+ {$i18n.label.note}: |
+ {$record.comment|escape} |
+
+ {/if}
{/foreach}
{/if}