diff --git a/templates/time_attendance_record_detail.html b/templates/time_attendance_record_detail.html index 738b6bb..44225a0 100644 --- a/templates/time_attendance_record_detail.html +++ b/templates/time_attendance_record_detail.html @@ -307,12 +307,10 @@ Cancel -
- -
+ @@ -522,27 +520,38 @@ margin: 0; } -/* Modal Styles */ -.modal { - display: none; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(0, 0, 0, 0.5); - z-index: 1000; - align-items: center; - justify-content: center; +/* Modal Styles - SUPER AGGRESSIVE */ +#deleteModal { + display: none !important; + position: fixed !important; + top: 0 !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + width: 100vw !important; + height: 100vh !important; + background: rgba(0, 0, 0, 0.7) !important; + z-index: 999999 !important; + align-items: center !important; + justify-content: center !important; + opacity: 1 !important; + visibility: visible !important; + pointer-events: auto !important; +} + +#deleteModal.active { + display: flex !important; } .modal-content { - background: white; - border-radius: 12px; - max-width: 500px; - width: 90%; - margin: 2rem; - box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); + background: white !important; + border-radius: 12px !important; + max-width: 500px !important; + width: 90% !important; + margin: 2rem !important; + box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important; + position: relative !important; + z-index: 1000000 !important; } .modal-header { @@ -783,11 +792,82 @@ {% endblock %} \ No newline at end of file diff --git a/templates/time_attendance_records.html b/templates/time_attendance_records.html index bea0f5d..583e198 100644 --- a/templates/time_attendance_records.html +++ b/templates/time_attendance_records.html @@ -348,7 +348,7 @@ function confirmDelete(recordId, employeeName, date) { if (confirm(`Are you sure you want to delete the attendance record for ${employeeName} on ${date}?`)) { const form = document.createElement('form'); form.method = 'POST'; - form.action = `/time-attendance/record/${recordId}/delete`; + form.action = `/time-attendance/delete/${recordId}`; document.body.appendChild(form); form.submit(); }