From 1528d08ae4feef9dea9e127698c4e974b3860ca2 Mon Sep 17 00:00:00 2001 From: Niek Rabelink Date: Wed, 9 Sep 2026 15:34:44 +0200 Subject: [PATCH] feat: Enhance task management with start and end time handling - Added functionality to calculate task duration based on provided start and end times. - Implemented logic to derive end time from start time and duration if only start time is provided. - Updated task creation and update APIs to handle new time fields. - Introduced a modal for editing tasks with flexible time and duration inputs. - Improved UI for task creation and editing, including better handling of time inputs and duration selection. - Added two-way synchronization with Outlook for task updates. --- admin.php | 2 + api/planner.php | 130 +++++-- includes/integrations/microsoft.php | 69 ++++ planner.php | 506 ++++++++++++++++++++++++++-- 4 files changed, 668 insertions(+), 39 deletions(-) diff --git a/admin.php b/admin.php index d226255..4457f5a 100644 --- a/admin.php +++ b/admin.php @@ -542,7 +542,9 @@ require_once __DIR__ . '/includes/header.php';
-
+
- -
- - + +
+ + +
- - + +
+
+
+
+ + 30m +
+
'15 minuten', 30 => '30 minuten', 45 => '45 minuten', 60 => '60 minuten (1 uur)', 90 => '90 minuten (1,5 uur)', 120 => '120 minuten (2 uur)']; - foreach ($durations as $mins => $label): ?> - - - + + +
@@ -587,7 +613,7 @@ for ($h = $startHour; $h <= $endHour; $h++) { - + @@ -613,12 +639,25 @@ for ($h = $startHour; $h <= $endHour; $h++) { - - + + @@ -834,6 +873,100 @@ for ($h = $startHour; $h <= $endHour; $h++) { + + +