From 8be54b8ac95787ba4664fee1446bc807ecf88139 Mon Sep 17 00:00:00 2001 From: Bram van Kooten Date: Thu, 27 Feb 2020 23:38:57 +0100 Subject: [PATCH] Add birthday to RFID assign screen (#92) --- src/lancie-admin-rfid/lancie-admin-rfid-assign.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lancie-admin-rfid/lancie-admin-rfid-assign.html b/src/lancie-admin-rfid/lancie-admin-rfid-assign.html index f17faa8..5820fa9 100644 --- a/src/lancie-admin-rfid/lancie-admin-rfid-assign.html +++ b/src/lancie-admin-rfid/lancie-admin-rfid-assign.html @@ -46,6 +46,7 @@

Check in a user by scanning the RFID tag and selecting the user from the list below.

+

Check if the persons birthday is correct, they can't change it after they are checked in.

Check in @@ -54,7 +55,7 @@ @@ -133,6 +134,12 @@ this.displayColor = true; }, + getDateFormatted:function(date) { + const d = new Date(date); + const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; + return `${d.getDate()} ${months[d.getMonth()]} ${d.getFullYear()}`; + }, + _filter: function(data, filterString) { if (!filterString) return data; var result = data.filter(function(ticket) {