From ae06956b3b3c4e5aa2d7053279e5d3d8ebbdd114 Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Tue, 7 Jul 2026 17:26:27 +0530 Subject: [PATCH] Restrict staff attendance punching to mobile devices --- .../attendance_punch_card.html | 311 +++++++++--------- .../templates/employees/self_attendance.html | 11 +- app/modules/employees/ui.py | 96 +++++- 3 files changed, 250 insertions(+), 168 deletions(-) diff --git a/app/modules/employees/templates/employees/portal_partials/attendance_punch_card.html b/app/modules/employees/templates/employees/portal_partials/attendance_punch_card.html index 0c5e560..38f97bc 100644 --- a/app/modules/employees/templates/employees/portal_partials/attendance_punch_card.html +++ b/app/modules/employees/templates/employees/portal_partials/attendance_punch_card.html @@ -22,162 +22,169 @@ {% if employee %} -
- Click Punch In/Punch Out. The app will ask for browser location before submitting attendance. -
-
- When branch geofence is enabled, browser location is mandatory. If location is denied/unavailable, attendance will not be submitted. -
+ {% if is_mobile_attendance_device %} +
+ Click Punch In/Punch Out. The app will ask for mobile browser location before submitting attendance. +
+
+ Attendance marking is allowed only from mobile. Browser location/GPS is mandatory. If location is denied/unavailable, attendance will not be submitted. +
-
-
- - - - - - - -
-
- - - - - - - -
-
+
+
+ + + + + + + +
+
+ + + + + + + +
+
-