Skip to content
Snippets Groups Projects
Verified Commit 40967ac9 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add indicator for not counted absences

parent eae1c27b
No related branches found
No related tags found
1 merge request!476Resolve "Not storing groups for documentations is kind of a problem"
......@@ -179,6 +179,14 @@
<v-list-item-action
class="flex-row full-width justify-md-end ma-0 align-center fill-height"
>
<v-chip
color="warning"
class="mx-1"
v-if="!item.relatedDocumentation.amended"
>{{
$t("alsijil.coursebook.statistics.not_counted")
}}</v-chip
>
<!-- chips: absences & extraMarks -->
<absence-reason-chip
v-if="item.absenceReason"
......
......@@ -64,6 +64,7 @@ query participationsOfPerson($person: ID!) {
colourFg
colourBg
}
amended
}
canEdit
canDelete
......
......@@ -82,7 +82,8 @@
"title": "Kursbuch · Statistiken · {fullName}"
},
"person_view_details": "Details",
"title_plural": "Statistiken"
"title_plural": "Statistiken",
"not_counted": "nicht gezählt"
},
"status": {
"available": "Kursbucheintrag vorhanden",
......
......@@ -85,7 +85,8 @@
"summary": "Summary"
},
"person_view_details": "Details",
"title_plural": "Statistics"
"title_plural": "Statistics",
"not_counted": "not counted"
},
"notes": {
"show_list": "List of participants",
......
......@@ -48,6 +48,7 @@ class DocumentationType(PermissionsTypeMixin, DjangoFilterMixin, DjangoObjectTyp
course = graphene.Field(CourseType, required=False)
amends = graphene.Field(lambda: LessonEventType, required=False)
amended = graphene.Boolean(required=False)
subject = graphene.Field(SubjectType, required=False)
participations = graphene.List(ParticipationStatusType, required=False)
......@@ -66,6 +67,11 @@ class DocumentationType(PermissionsTypeMixin, DjangoFilterMixin, DjangoObjectTyp
return root._amends_prefetched
return root.amends
@staticmethod
@bypass_get_queryset
def resolve_amended(root: Documentation, info, **kwargs):
return root.amends_id is not None
@staticmethod
@bypass_get_queryset
def resolve_teachers(root: Documentation, info, **kwargs):
......
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