Skip to content
Snippets Groups Projects
Commit db8127da authored by permcu's avatar permcu
Browse files

Implement StatisticsTardinessCard

parent 7726cfad
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
......@@ -11,7 +11,10 @@
<statistics-absences-card
:absence-reasons="statistics.absenceReasons"
/>
<statistics-tardiness-card />
<statistics-tardiness-card
:tardiness-sum="statistics.tardinessSum"
:tardiness-count="statistics.tardinessCount"
/>
<statistics-extra-marks-card />
<statistics-personal-notes-list
v-if="compact"
......
<template>
<v-card>
<v-card>
{{ tardinessCount }}
{{ $t("alsijil.tardiness.plural") }}
<!-- TODO: Show average tardiness instead of sum like mock-up? -->
{{ tardinessSum }}
</v-card>
</template>
<script>
export default {
name: "StatisticsTardinessCard",
props: {
tardinessSum: {
type: Number,
required: true,
},
tardinessCount: {
type: Number,
required: true,
},
},
};
</script>
......@@ -84,6 +84,9 @@
},
"week": {
"menu_title": "Aktuelle Woche"
},
"tardiness": {
"plural": "Verspätungen"
}
}
}
......@@ -31,6 +31,9 @@
"all_lessons": {
"menu_title": "All lessons"
},
"tardiness": {
"plural": "tardiness"
},
"menu_title": "Class register",
"coursebook": {
"menu_title": "Coursebook",
......
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