From 0094e367ec6a15068043d438ee69ebc88b7e21b0 Mon Sep 17 00:00:00 2001 From: Ray1111-aa Date: Sat, 24 Oct 2026 14:46:59 +0700 Subject: [PATCH] feat: default timesheet start time to realtime clock and remove shift selection from form --- .../views/qma/support_timesheet.blade.php | 87 ++++++++----------- 1 file changed, 37 insertions(+), 50 deletions(-) diff --git a/resources/views/qma/support_timesheet.blade.php b/resources/views/qma/support_timesheet.blade.php index db485d3..70dc5ec 100644 --- a/resources/views/qma/support_timesheet.blade.php +++ b/resources/views/qma/support_timesheet.blade.php @@ -550,7 +550,7 @@ @@ -585,30 +585,18 @@ - -
-
- - -
- -
- - -
+ + +
+ +
@@ -891,30 +879,18 @@
- -
-
- - -
- -
- - -
+ + +
+ +
@@ -1128,8 +1104,19 @@ const startMeter = document.getElementById('addStartMeter'); if (startMeter) startMeter.value = ''; + // Otomatis tanggal dan jam realtime saat ini + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const day = String(now.getDate()).padStart(2, '0'); + const hours = String(now.getHours()).padStart(2, '0'); + const minutes = String(now.getMinutes()).padStart(2, '0'); + + const addDate = document.getElementById('addDate'); + if (addDate) addDate.value = `${year}-${month}-${day}`; + const startTime = document.getElementById('addStartTime'); - if (startTime) startTime.value = '08:00'; + if (startTime) startTime.value = `${hours}:${minutes}`; modal.classList.remove('hidden'); modal.style.display = 'block';