From 7b1ce3c4f5fb25631ce12bd33437474645d323c1 Mon Sep 17 00:00:00 2001 From: Michael Bauer <michael-bauer@posteo.de> Date: Sun, 13 Oct 2024 16:26:08 +0200 Subject: [PATCH] Add header with affected teachers & groups --- .../chronos/frontend/components/Substitutions.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/aleksis/apps/chronos/frontend/components/Substitutions.vue b/aleksis/apps/chronos/frontend/components/Substitutions.vue index 9a295e21..2f9de371 100644 --- a/aleksis/apps/chronos/frontend/components/Substitutions.vue +++ b/aleksis/apps/chronos/frontend/components/Substitutions.vue @@ -13,6 +13,21 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; :enable-create="false" :enable-edit="false" > + <template #title> + <!-- TODO: 18n --> + <v-container> + <v-row> + <v-col> Betroffene Lehrkräfte </v-col> + <v-col> {{ affectedTeachers.map(t => t.shortName || t.fullName).join(', ') }} </v-col> + <v-spacer/> + </v-row> + <v-row> + <v-col> Betroffene Gruppen </v-col> + <v-col> {{ affectedGroups.map(g => g.shortName).join(', ') }} </v-col> + <v-spacer/> + </v-row> + </v-container> + </template> <!-- TODO: Component for strike -> bold || normal --> <template #groups="{ item: { oldGroups, newGroups } }"> <span v-if="newGroups.length > 0"> -- GitLab