From c2008435ea70b4b2040fb612904b79d2510e3b62 Mon Sep 17 00:00:00 2001 From: Nguyen Ngo Date: Mon, 11 Aug 2025 13:23:32 -0400 Subject: [PATCH] Updated language displayed --- app.py | 3 +- templates/qr_destination.html | 343 ++++++++++++++++++---------------- 2 files changed, 179 insertions(+), 167 deletions(-) diff --git a/app.py b/app.py index 996bdb0..8f46578 100644 --- a/app.py +++ b/app.py @@ -2319,7 +2319,8 @@ def qr_checkin(qr_url): return jsonify({ 'success': False, - 'message': f'You can check in again in {minutes_remaining} minutes. Last check-in was at {recent_checkin.check_in_time.strftime("%H:%M")}.' + 'message': f"You can check in again in {minutes_remaining} minutes. Last check-in was at {recent_checkin.check_in_time.strftime("%H:%M")}. \n" + f"Puedes volver a registrarte en {minutes_remaining} minutos. El último registro fue a las {recent_checkin.check_in_time.strftime("%H:%M")}." }), 400 else: print(f"✅ 30-minute interval satisfied. Allowing new check-in for {employee_id}") diff --git a/templates/qr_destination.html b/templates/qr_destination.html index 449e249..400a054 100644 --- a/templates/qr_destination.html +++ b/templates/qr_destination.html @@ -9,10 +9,12 @@ rel="stylesheet" /> - +
- + - + +
@@ -524,19 +553,9 @@
- +
-

- +
@@ -604,15 +623,15 @@ >

- Your attendance has been recordedYour attendance has been recorded / Su asistencia ha sido registrada

- +
{{ qr_code.location_event }} #1
@@ -621,23 +640,23 @@
Employee IDEmployee ID / ID de Empleado -
Location/BuildingLocation/Building - Ubicación/Edificio -
- Event - @@ -645,14 +664,14 @@
{{ qr_code.location_event }} Time -
- Date - @@ -664,10 +683,7 @@ -
- -
- + - + \ No newline at end of file