[UPDT] BIOMETRIC: Updated biometric device model by introduce device direction field to set attendance punch for in/out devices

This commit is contained in:
Horilla
2025-07-21 13:49:11 +05:30
parent 1607a1f7f9
commit c87b2a5b71
11 changed files with 391 additions and 552 deletions

View File

@@ -431,6 +431,28 @@ function handleHtmxTarget(event, path, verb) {
return hxTarget;
}
function hxConfirm(element, messageText) {
Swal.fire({
html: messageText,
icon: "question",
showCancelButton: true,
confirmButtonColor: "#008000",
cancelButtonColor: "#d33",
confirmButtonText: "Confirm",
cancelButtonText: "Cancel",
reverseButtons: true,
}).then((result) => {
if (result.isConfirmed) {
htmx.trigger(element, 'confirmed');
}
else {
element.checked = false
return false
}
});
}
function handleDownloadAndRefresh(event, url) {
// Use in import_popup.html file
event.preventDefault();