Reduction of amount for siblings implemented
This commit is contained in:
@@ -27,6 +27,11 @@ const next = () => {
|
||||
hasError = true
|
||||
}
|
||||
|
||||
if (props.event.siblingReduction && props.formData.sibling === '-1') {
|
||||
errors.sibling = 'Bitte eine Entscheidung treffen.'
|
||||
}
|
||||
|
||||
|
||||
if (!props.formData.telefon_2) {
|
||||
errors.telefon_2 = 'Bitte eine Telefonnummer angeben.'
|
||||
hasError = true
|
||||
@@ -110,6 +115,20 @@ const next = () => {
|
||||
<ErrorText :message="errors.first_aid" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="event.siblingReduction">
|
||||
<td>Ist bereits ein vollzahlendes Geschwisterkind für die Veranstaltung angemeldet:*</td>
|
||||
<td>
|
||||
<select v-model="formData.sibling">
|
||||
<option value="-1">Bitte wählen</option>
|
||||
<option value="true">Ja</option>
|
||||
<option value="false">Nein</option>
|
||||
</select><br />
|
||||
<span style="font-size: 0.8rem; color: #6b7280;">
|
||||
Ist bereits ein vollzahlendes Geschwisterkind angemeldet, reduziert sich der Teilnahmebeitrag um 50%. Der Preisnachlass wird am Ende der Anmeldung automatisch abgezogen.
|
||||
</span>
|
||||
<ErrorText :message="errors.sibling" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
|
||||
@@ -20,6 +20,7 @@ const nextStep = () => {
|
||||
const hasAddons = (props.event.addons?.length ?? 0) > 0
|
||||
emit('next', hasAddons ? 6 : 7)
|
||||
}
|
||||
console.log(props.formData, props.event)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -113,6 +114,9 @@ const nextStep = () => {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p v-if="props.event.siblingReduction && props.formData.sibling === 'true'">
|
||||
Der Preisnachlass in Höhe von 50% wird am Ende des Anmeldeprozesses berechnet.
|
||||
</p>
|
||||
|
||||
<div class="btn-row">
|
||||
<button type="button" class="btn-secondary" @click="emit('back', 3)">← Zurück</button>
|
||||
|
||||
Reference in New Issue
Block a user