Skip to content
Snippets Groups Projects
Verified Commit ad2f3647 authored by permcu's avatar permcu Committed by Jonathan Weth
Browse files

Link to affected teachers

parent b9f8d36c
No related branches found
No related tags found
1 merge request!373Resolve "Substitutions table for new data model"
...@@ -17,8 +17,22 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; ...@@ -17,8 +17,22 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
<!-- TODO: 18n --> <!-- TODO: 18n -->
<v-container> <v-container>
<v-row> <v-row>
<v-col> Betroffene Lehrkräfte </v-col> <v-col cols="4"> Betroffene Lehrkräfte </v-col>
<v-col> {{ affectedTeachers.map(t => t.shortName || t.fullName).join(', ') }} </v-col> <v-col cols="8">
<v-chip
v-for="(teacher, i) in affectedTeachers"
class="ma-1"
:to="{
name: 'chronos.timetableWithId',
params: {
type: 'person',
id: teacher.id,
},
}"
>
{{ teacher.shortName || teacher.fullName }}
</v-chip>
</v-col>
<v-spacer/> <v-spacer/>
</v-row> </v-row>
<v-row> <v-row>
......
query substitutionsForDate ($date: Date!) { query substitutionsForDate ($date: Date!) {
items: substitutionsForDate(date: $date) { items: substitutionsForDate(date: $date) {
affectedTeachers { affectedTeachers {
id
shortName shortName
fullName fullName
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment