Sep 15 - Update the check-in page, fix the employee id input placeholder message
This commit is contained in:
@@ -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 |
|
| `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": 1–3 digit IDs still check in. Supersedes the earlier "no `maxlength` cap" note in §11 |
|
| — | "Up to 4 digits" chosen over "exactly 4": 1–3 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
|
## 21. Infrastructure & Deployment
|
||||||
|
|||||||
@@ -196,7 +196,9 @@ function disableFormImmediately() {
|
|||||||
employeeIdInput.disabled = true;
|
employeeIdInput.disabled = true;
|
||||||
employeeIdInput.style.opacity = "0.7";
|
employeeIdInput.style.opacity = "0.7";
|
||||||
employeeIdInput.setAttribute("data-location-blocked", "true");
|
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) {
|
if (form) {
|
||||||
|
|||||||
@@ -1198,7 +1198,7 @@
|
|||||||
id="employee_id"
|
id="employee_id"
|
||||||
name="employee_id"
|
name="employee_id"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
placeholder="Enter your ID / Ingrese su ID"
|
placeholder="Enter your employee ID / Ingrese su ID de empleado"
|
||||||
required
|
required
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
inputmode="numeric"
|
inputmode="numeric"
|
||||||
|
|||||||
Reference in New Issue
Block a user