Skip to content
Snippets Groups Projects
Commit 5ad8e7cc authored by Julian's avatar Julian
Browse files

Show text-based personal notes in student overview

parent 47e166a6
No related branches found
No related tags found
1 merge request!362Resolve "Add personal note management dialog in course book"
...@@ -153,27 +153,39 @@ export default { ...@@ -153,27 +153,39 @@ export default {
<v-list-item-subtitle <v-list-item-subtitle
v-if=" v-if="
item.absenceReason || item.absenceReason ||
item.notesWithNote?.length > 0 ||
item.notesWithExtraMark?.length > 0 || item.notesWithExtraMark?.length > 0 ||
item.noteWithTardiness item.noteWithTardiness
" "
class="d-flex flex-wrap gap"
> >
<absence-reason-chip <absence-reason-chip
v-if="item.absenceReason" v-if="item.absenceReason"
small small
:absence-reason="item.absenceReason" :absence-reason="item.absenceReason"
class="mr-1"
/> />
<v-chip
v-for="note in item.notesWithNote"
:key="'text-note-note-overview-' + note.id"
small
>
<v-avatar left>
<v-icon small>mdi-note-outline</v-icon>
</v-avatar>
<span class="text-truncate" style="max-width: 30ch">
{{ note.note }}
</span>
</v-chip>
<extra-mark-chip <extra-mark-chip
v-for="note in item.notesWithExtraMark" v-for="note in item.notesWithExtraMark"
:key="'extra-mark-note-overview-' + note.id" :key="'extra-mark-note-overview-' + note.id"
:extra-mark="extraMarks.find((e) => e.id === note.extraMark.id)" :extra-mark="extraMarks.find((e) => e.id === note.extraMark.id)"
small small
class="mr-1"
/> />
<tardiness-chip <tardiness-chip
v-if="item.noteWithTardiness" v-if="item.noteWithTardiness"
:tardiness="item.noteWithTardiness.tardiness" :tardiness="item.noteWithTardiness.tardiness"
class="mr-1" small
/> />
</v-list-item-subtitle> </v-list-item-subtitle>
</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