X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Ftime.tpl;h=3b8b0f8b4686a7550687a4bf52b2fc6cae3fe408;hb=14694940d3905eb4b429dc7b936ff80c80ef3783;hp=8ae65b0d2985e52f7d4a4fb408fbe0db699048c3;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/time.tpl b/WEB-INF/templates/mobile/time.tpl
index 8ae65b0d..3b8b0f8b 100644
--- a/WEB-INF/templates/mobile/time.tpl
+++ b/WEB-INF/templates/mobile/time.tpl
@@ -1,210 +1,8 @@
-
+{include file="time_script.tpl"}
@@ -220,23 +18,23 @@ function get_date() {
{if $time_records}
-
+
{foreach $time_records as $record}
-
+
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
- {$record.project|escape:'html'} |
+ {$record.project|escape} |
{/if}
- {if $record.duration == '0:00'}{/if}{$record.duration}{if $record.duration == '0:00'}{/if}
- | {if $record.invoice_id} {else}{$i18n.label.edit}{/if} |
+ {if ($record.duration == '0:00' && $record.start <> '')}{/if}{$record.duration}{if ($record.duration == '0:00' && $record.start <> '')}{/if} |
+ {if $record.invoice_id} {else}{$i18n.label.edit}{/if} |
{/foreach}
-
-
+
- {$i18n.label.day_total}: |
+ {$i18n.label.day_total}: |
{$day_total} |
-
+
{/if}
|
@@ -248,17 +46,17 @@ function get_date() {
-
+ |
-{if in_array('cl', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('cl')}
{$i18n.label.client}: |
{$forms.timeRecordForm.client.control} |
{/if}
-{if in_array('iv', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('iv')}
|
{/if}
{if ($custom_fields && $custom_fields->fields[0])}
- {$custom_fields->fields[0]['label']|escape:'html'}: |
+ {$custom_fields->fields[0]['label']|escape}: |
{$forms.timeRecordForm.cf_1.control} |
{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
@@ -293,4 +91,4 @@ function get_date() {
-{$forms.timeRecordForm.close}
\ No newline at end of file
+{$forms.timeRecordForm.close}
| |