Updated check-in page interface

This commit is contained in:
2026-02-10 12:57:25 -05:00
parent 43de08b5cb
commit c0eb1e21ad
3 changed files with 26 additions and 10 deletions
+18 -2
View File
@@ -378,7 +378,15 @@ function handleCheckinSuccess(data) {
showLocalizedStatusMessage("success", "success");
}
// Hide form (PRESERVED FROM ORIGINAL)
// Hide the entire checkin-card (includes instruction header and form)
const checkinCard = document.querySelector(".checkin-card");
if (checkinCard) {
checkinCard.style.display = "none";
checkinCard.classList.remove("active");
checkinCard.classList.add("hidden-after-success");
}
// Also hide form separately for backward compatibility (PRESERVED FROM ORIGINAL)
const form = document.getElementById("checkinForm");
if (form) {
form.style.display = "none";
@@ -465,7 +473,15 @@ function handleCheckinSuccess(data) {
// NEW: Reset form for new check-in
function resetForNewCheckin() {
// Show form again
// Show checkin-card again (includes instruction header and form)
const checkinCard = document.querySelector(".checkin-card");
if (checkinCard) {
checkinCard.style.display = "block";
checkinCard.classList.add("active");
checkinCard.classList.remove("hidden-after-success");
}
// Show form again (PRESERVED FROM ORIGINAL)
const form = document.getElementById("checkinForm");
if (form) {
form.style.display = "block";