From 1710004d53137f6d7c3c6f543f519342600ce8e9 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Tue, 8 Jun 2021 11:23:25 +0200
Subject: [PATCH] Date format changed to old standard. Added alternating gray
 rows to the table

---
 .../templates/cydiapomonella/index.html           | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/cydiapomonella/templates/cydiapomonella/index.html b/cydiapomonella/templates/cydiapomonella/index.html
index a3885899..5d3a250f 100644
--- a/cydiapomonella/templates/cydiapomonella/index.html
+++ b/cydiapomonella/templates/cydiapomonella/index.html
@@ -62,13 +62,10 @@
         }
 */ 
         /* Data table even stripe color */
-       /* .table-striped>tbody>tr:nth-child(even)>td, */
-        /* Choose your own color here Earlier color : #e4ddd6 */
-/*
-        .table-striped>tbody>tr:nth-child(even)>th {
-        background-color:#f9f9f9  
+       .table-striped>tbody>tr:nth-child(even)>td {
+        background-color : #eeeeee 
         }
-*/
+
         body {
             font-family: 'Source Sans Pro', sans-serif;
         }
@@ -484,8 +481,8 @@
 
             }
             $('#idSpanWeatherStationName').html($('#weatherStationId').find(':selected').text());
-            $('#idSpanStartDate').html($('#idTxtDateInput').val());
-            $('#idSpanEndDate').html(JSON.stringify(dateYesterday).substring(1,11));
+            $('#idSpanStartDate').html(moment($('#idTxtDateInput').val()).format("DD.MM.YYYY"));
+            $('#idSpanEndDate').html(moment(JSON.stringify(dateYesterday).substring(1,11)).format("DD.MM.YYYY"));
             $('#idDivResultNonNegative').html(Math.round(TM_NON_NEGATIVE));
             $('#idSpanDateDifference').html(dateDifferenceInDays(new Date($('#idTxtDateInput').val()), new Date()));
         }
@@ -515,7 +512,7 @@
                                             "mData"     :   "resultDate",
                                             "render"    :   function(data, type, full, meta)
                                                             {
-                                                                return data
+                                                                return moment(data).format("DD.MM.YYYY");
                                                             },
                                             "sClass" :  "colCenter",
                                             "bSortable" : false
-- 
GitLab