Sep 15 - Reverse the check-in pages, set type of work Regular as default

This commit is contained in:
2026-09-15 11:44:05 -04:00
parent 4fc500707b
commit 23bd3a897b
4 changed files with 13 additions and 87 deletions
+1 -16
View File
@@ -327,25 +327,10 @@ function submitCheckin() {
const workTypeField = document.getElementById("work_type");
const workType = workTypeField ? workTypeField.value.trim() : "";
// Type of Work has no default - the employee must choose one
if (!workType) {
if (workTypeField) {
workTypeField.classList.add("work-type-missing");
workTypeField.focus();
}
showCustomStatusMessage(
"Please select the Type of Work / Por favor seleccione el Tipo de Trabajo",
"error"
);
isSubmitting = false;
updateSubmitButton(false);
return;
}
// Prepare form data
const formData = new FormData();
formData.append("employee_id", employeeId);
// R = Regular (ID stored unchanged); PW / SP / C are appended to the ID server-side
// Empty string = Regular; PW / SP / C are appended to the ID server-side
formData.append("work_type", workType);
formData.append(
"latitude",