Sep 15 - Update the check-in page, fix the employee id input placeholder message

This commit is contained in:
2026-09-15 12:58:00 -04:00
parent b33ed8d6c8
commit 4212726611
3 changed files with 10 additions and 2 deletions
+6
View File
@@ -1265,6 +1265,12 @@ it (the workers share no pub/sub).
| `routes/qr_codes.py` | `CHECKIN_EMPLOYEE_ID_MAX_DIGITS`; `qr_checkin` rejects a base ID over 4 digits (HTTP 400, bilingual); `qr_last_work_type` returns no suggestion for longer IDs |
| — | "Up to 4 digits" chosen over "exactly 4": 13 digit IDs still check in. Supersedes the earlier "no `maxlength` cap" note in §11 |
### Set 22 — Employee ID Placeholder Stuck on "Checking location services..." (Sept 15, 2026)
| File | Fix |
|---|---|
| `static/js/qr_destination.js` | `disableFormImmediately()` replaced the Employee ID placeholder with "Checking location services..." and nothing restored it after location services were confirmed. The override is removed — the submit button already shows the checking state |
| `templates/qr_destination.html` | Placeholder is now "Enter your employee ID / Ingrese su ID de empleado" |
---
## 21. Infrastructure & Deployment
+3 -1
View File
@@ -196,7 +196,9 @@ function disableFormImmediately() {
employeeIdInput.disabled = true;
employeeIdInput.style.opacity = "0.7";
employeeIdInput.setAttribute("data-location-blocked", "true");
employeeIdInput.placeholder = "Checking location services...";
// The placeholder is deliberately left alone: it was never restored once
// location services were confirmed, so the empty field kept saying
// "Checking location services...". The submit button shows that state.
}
if (form) {
+1 -1
View File
@@ -1198,7 +1198,7 @@
id="employee_id"
name="employee_id"
class="form-control"
placeholder="Enter your ID / Ingrese su ID"
placeholder="Enter your employee ID / Ingrese su ID de empleado"
required
autocomplete="off"
inputmode="numeric"