X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Fmobile%2Ftime.tpl;h=35242e2f38505557083145a64c1445154750eeb2;hb=710003ecf2838c254c075fd9898034e267915e46;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..35242e2f 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,21 @@ function get_date() {
-
+ |
-{if in_array('cl', explode(',', $user->plugins))}
- {$i18n.label.client}: |
- {$forms.timeRecordForm.client.control} |
+{if $user_dropdown}
+ {$i18n.label.user}: |
+ {$forms.timeRecordForm.user.control} |
+{/if}
+{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 +95,4 @@ function get_date() {
-{$forms.timeRecordForm.close}
\ No newline at end of file
+{$forms.timeRecordForm.close}
| |