diff --git a/apps/app/src/components/sections/CreateShiftDialog.vue b/apps/app/src/components/sections/CreateShiftDialog.vue index df399d21..e1481008 100644 --- a/apps/app/src/components/sections/CreateShiftDialog.vue +++ b/apps/app/src/components/sections/CreateShiftDialog.vue @@ -71,14 +71,18 @@ 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) +/** Time-slot hierarchy uitleg (ingeklapt = minder visuele ruis). */ +const timeSlotHelpOpen = ref(false) watch(modelValue, (open) => { if (open) - timeSlotHelpPanel.value = undefined + timeSlotHelpOpen.value = false }) +function toggleTimeSlotHelp() { + timeSlotHelpOpen.value = !timeSlotHelpOpen.value +} + // Populate form when editing watch( () => props.shift, @@ -204,74 +208,103 @@ function onSubmit() { - - - + + + {{ isEditing ? 'Shift bewerken' : 'Shift toevoegen' }} - {{ section.name }} + {{ section.name }} festival-breed · {{ eventDetail.name }} + >· {{ eventDetail.name }} - + - - + - - -
+
+ +
+ + + Tijdsloten in dit evenement + - Tijdsloten in dit evenement -
- - -

- {{ tooltipText.main }} -

-

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

-
- - + + +
+

+ {{ tooltipText.main }} +

+

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

+
+
+
+
+
-

+

Tijd & rol

@@ -318,6 +351,9 @@ function onSubmit() { v-else type="info" variant="tonal" + border="start" + border-color="info" + density="comfortable" >
Maak eerst een time slot aan @@ -344,9 +380,9 @@ function onSubmit() { - + -

+

Tijden (optioneel)

@@ -361,8 +397,7 @@ function onSubmit() { v-model="form.report_time" label="Rapporttijd" type="time" - hint="Aanwezig vanaf" - persistent-hint + hide-details="auto" :error-messages="errors.report_time" /> @@ -374,8 +409,7 @@ function onSubmit() { v-model="form.actual_start_time" label="Starttijd" type="time" - hint="Leeg = time slot" - persistent-hint + hide-details="auto" :error-messages="errors.actual_start_time" /> @@ -387,16 +421,15 @@ function onSubmit() { v-model="form.actual_end_time" label="Eindtijd" type="time" - hint="Leeg = time slot" - persistent-hint + hide-details="auto" :error-messages="errors.actual_end_time" /> - + -

+

Capaciteit

@@ -419,19 +452,21 @@ function onSubmit() { > - + -

+

Opties

@@ -442,9 +477,9 @@ function onSubmit() { +

+ Leiding: coördinatie of verantwoordelijke. Overlap: dezelfde persoon mag meerdere shifts in hetzelfde tijdvak. +

- + -

+

Documentatie & status

@@ -487,9 +525,9 @@ function onSubmit() { - + - +