X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Ftime.tpl;h=29e2718000b00986cc2d5d09f76ab61e04c5d515;hb=ede1eab3f219537349c91cf7fcdaf8bdb242d41a;hp=ed83c9cb964ea25cc80af48e59f3c20923fb4683;hpb=bd68d5a0dc9aad9854df9220538bd0c0db7d6ea0;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/time.tpl b/WEB-INF/templates/mobile/time.tpl
index ed83c9cb..29e27180 100644
--- a/WEB-INF/templates/mobile/time.tpl
+++ b/WEB-INF/templates/mobile/time.tpl
@@ -143,39 +143,40 @@ function fillTaskDropdown(id) {
// The formDisable function disables some fields depending on what we have in other fields.
function formDisable(formField) {
- formFieldValue = eval("document.timeRecordForm." + formField + ".value");
- formFieldName = eval("document.timeRecordForm." + formField + ".name");
+ var formFieldValue = eval("document.timeRecordForm." + formField + ".value");
+ var formFieldName = eval("document.timeRecordForm." + formField + ".name");
+ var x;
if (((formFieldValue != "") && (formFieldName == "start")) || ((formFieldValue != "") && (formFieldName == "finish"))) {
- var x = eval("document.timeRecordForm.duration");
+ x = eval("document.timeRecordForm.duration");
x.value = "";
x.disabled = true;
x.style.background = "#e9e9e9";
}
if (((formFieldValue == "") && (formFieldName == "start") && (document.timeRecordForm.finish.value == "")) || ((formFieldValue == "") && (formFieldName == "finish") && (document.timeRecordForm.start.value == ""))) {
- var x = eval("document.timeRecordForm.duration");
+ x = eval("document.timeRecordForm.duration");
x.value = "";
x.disabled = false;
x.style.background = "white";
}
if ((formFieldValue != "") && (formFieldName == "duration")) {
- var x = eval("document.timeRecordForm.start");
+ x = eval("document.timeRecordForm.start");
x.value = "";
x.disabled = true;
x.style.background = "#e9e9e9";
- var x = eval("document.timeRecordForm.finish");
+ x = eval("document.timeRecordForm.finish");
x.value = "";
x.disabled = true;
x.style.background = "#e9e9e9";
}
if ((formFieldValue == "") && (formFieldName == "duration")) {
- var x = eval("document.timeRecordForm.start");
+ x = eval("document.timeRecordForm.start");
x.disabled = false;
x.style.background = "white";
- var x = eval("document.timeRecordForm.finish");
+ x = eval("document.timeRecordForm.finish");
x.disabled = false;
x.style.background = "white";
}
@@ -186,7 +187,7 @@ function setNow(formField) {
var x = eval("document.timeRecordForm.start");
x.disabled = false;
x.style.background = "white";
- var x = eval("document.timeRecordForm.finish");
+ x = eval("document.timeRecordForm.finish");
x.disabled = false;
x.style.background = "white";
var today = new Date();
@@ -220,20 +221,20 @@ 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' && $record.start <> '')}{/if}{$record.duration}{if ($record.duration == '0:00' && $record.start <> '')}{/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} |
@@ -258,7 +259,7 @@ function get_date() {
|
{/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)}
|