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

Implement teachers-field

parent 0face6f9
No related branches found
No related tags found
1 merge request!373Resolve "Substitutions table for new data model"
...@@ -39,6 +39,18 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; ...@@ -39,6 +39,18 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
TODO 18n all day TODO 18n all day
</span> </span>
</template> </template>
<template #teachers="{ item: { oldTeachers, newTeachers } }">
<span v-if="newTeachers.length > 0">
<strike v-for="t in oldTeachers"> {{ t.shortName || t.fullName }} </strike>
<span> &nbsp;&nbsp </span>
<b v-for="t in newTeachers"> {{ t.shortName || t.fullName }} </b>
</span>
<span
v-else
v-for="t in oldTeachers"
> {{ t.shortName || t.fullName }} </span>
</template>
</template>
</c-r-u-d-list> </c-r-u-d-list>
</template> </template>
......
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