From 8afee801f8736c29e76bb49d0b185271c04dfe22 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Tue, 14 Apr 2026 22:47:20 +0200 Subject: [PATCH] feat: make shift dialog time-slot help collapsible Made-with: Cursor --- .../components/sections/CreateShiftDialog.vue | 50 +++++++++++++------ 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/apps/app/src/components/sections/CreateShiftDialog.vue b/apps/app/src/components/sections/CreateShiftDialog.vue index 01c26cf3..df399d21 100644 --- a/apps/app/src/components/sections/CreateShiftDialog.vue +++ b/apps/app/src/components/sections/CreateShiftDialog.vue @@ -71,6 +71,14 @@ const form = ref({ const errors = ref>({}) const refVForm = ref() +/** Single accordion panel id for time-slot help; `undefined` = collapsed (saves vertical space). */ +const timeSlotHelpPanel = ref(undefined) + +watch(modelValue, (open) => { + if (open) + timeSlotHelpPanel.value = undefined +}) + // Populate form when editing watch( () => props.shift, @@ -232,22 +240,36 @@ function onSubmit() { @submit.prevent="onSubmit" > - -

- {{ tooltipText.main }} -

-

- Tip: - {{ tooltipText.tip }} -

-
+ + +
+ + Tijdsloten in dit evenement +
+
+ +

+ {{ tooltipText.main }} +

+

+ Tip: + {{ tooltipText.tip }} +

+
+
+

Tijd & rol