+ Für diese Veranstaltung sind noch keine Teilnahmeoptionen angelegt. Sobald du unter
+ Übersicht → Teilnahmeoptionen Fragen definierst, werden die Teilnehmenden hier nach
+ ihrer Auswahl gruppiert.
+
+
+
+
+
+
diff --git a/app/Domains/Event/Views/Partials/ParticipantsList.vue b/app/Domains/Event/Views/Partials/ParticipantsList.vue
index 93ea9be..0479493 100644
--- a/app/Domains/Event/Views/Partials/ParticipantsList.vue
+++ b/app/Domains/Event/Views/Partials/ParticipantsList.vue
@@ -20,6 +20,11 @@ const props = defineProps({
listType: '',
}),
},
+ // Steuert, ob je Gruppe der „E-Mail an Gruppe senden"-Button angezeigt wird.
+ showGroupMail: {
+ type: Boolean,
+ default: true,
+ },
});
const today = format(new Date(), "yyyy-MM-dd");
@@ -404,7 +409,8 @@ function mailToGroup(groupKey) {
27 Jahre und älter: {{ getAgeCounts(participants)['27+'] ?? 0 }}
-
+
diff --git a/app/Domains/Event/Views/Partials/ParticipationOptions.vue b/app/Domains/Event/Views/Partials/ParticipationOptions.vue
index ac742ef..f57333a 100644
--- a/app/Domains/Event/Views/Partials/ParticipationOptions.vue
+++ b/app/Domains/Event/Views/Partials/ParticipationOptions.vue
@@ -14,12 +14,13 @@ const props = defineProps({
// neue Einträge bekommen serverseitig beim Speichern einen stabilen Slug.
const questions = ref((props.event.participationOptions ?? []).map(q => ({
key: q.key ?? '',
+ title: q.title ?? '',
label: q.label ?? '',
options: (q.options ?? []).map(o => ({value: o.value ?? '', label: o.label ?? ''})),
})))
function addQuestion() {
- questions.value.push({key: '', label: '', options: [{value: '', label: ''}, {value: '', label: ''}]})
+ questions.value.push({key: '', title: '', label: '', options: [{value: '', label: ''}, {value: '', label: ''}]})
}
function removeQuestion(index) {
@@ -36,8 +37,8 @@ function removeOption(question, index) {
function validate() {
for (const question of questions.value) {
- if (question.label.trim() === '') {
- toast.error('Bitte für jede Frage eine Beschriftung angeben.')
+ if (question.title.trim() === '') {
+ toast.error('Bitte für jede Frage einen Titel angeben.')
return false
}
@@ -83,12 +84,23 @@ async function save() {