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