From 2b33db994ef8ee17de49df35afac00e4b1a6d45b Mon Sep 17 00:00:00 2001 From: anuko Date: Sun, 29 Jan 2017 20:53:17 +0000 Subject: [PATCH] Shared time_script.tpl in mobile timer.tpl as well. --- WEB-INF/templates/mobile/timer.tpl | 171 ++--------------------------- WEB-INF/templates/time_script.tpl | 6 +- mobile/timer.php | 2 +- 3 files changed, 15 insertions(+), 164 deletions(-) diff --git a/WEB-INF/templates/mobile/timer.tpl b/WEB-INF/templates/mobile/timer.tpl index c91dd4f4..631f4977 100644 --- a/WEB-INF/templates/mobile/timer.tpl +++ b/WEB-INF/templates/mobile/timer.tpl @@ -1,160 +1,7 @@ - +{include file="time_script.tpl"}

00:00 - {/if} -{$forms.timerRecordForm.open} +{$forms.timeRecordForm.open} - +
@@ -219,34 +66,34 @@ startTimer(); {if $user->isPluginEnabled('cl')} - + {/if} {if $user->isPluginEnabled('iv')} - + {/if} {if ($custom_fields && $custom_fields->fields[0])} - + {/if} {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} - + {/if} {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} - + {/if}
{$i18n.label.client}:
{$forms.timerRecordForm.client.control}
{$forms.timeRecordForm.client.control}
{$custom_fields->fields[0]['label']|escape}:
{$forms.timerRecordForm.cf_1.control}
{$forms.timeRecordForm.cf_1.control}
{$i18n.label.project}:
{$forms.timerRecordForm.project.control}
{$forms.timeRecordForm.project.control}
{$i18n.label.task}:
{$forms.timerRecordForm.task.control}
{$forms.timeRecordForm.task.control}
{$forms.timerRecordForm.btn_start.control} {$forms.timerRecordForm.btn_stop.control}{$forms.timeRecordForm.btn_start.control} {$forms.timeRecordForm.btn_stop.control}
-{$forms.timerRecordForm.close} +{$forms.timeRecordForm.close} diff --git a/WEB-INF/templates/time_script.tpl b/WEB-INF/templates/time_script.tpl index 624ff0e5..275f74c6 100644 --- a/WEB-INF/templates/time_script.tpl +++ b/WEB-INF/templates/time_script.tpl @@ -1,5 +1,9 @@