From 4622b54942a77405ff041fb08cbb1ae6ba1423dc Mon Sep 17 00:00:00 2001 From: miboelae Date: Sat, 11 May 2024 21:22:03 +0200 Subject: [PATCH] Implement show all students in groups --- frontend/src/components/AllstudentsDialog.vue | 60 +++++++++++++++++++ .../src/components/home/cards/GroupCard.vue | 2 + frontend/src/i18n/locales/en.ts | 5 ++ frontend/src/i18n/locales/nl.ts | 5 ++ frontend/src/views/GroupsView.vue | 54 ++++++++++++----- frontend/src/views/ProjectsView.vue | 2 +- 6 files changed, 111 insertions(+), 17 deletions(-) create mode 100644 frontend/src/components/AllstudentsDialog.vue diff --git a/frontend/src/components/AllstudentsDialog.vue b/frontend/src/components/AllstudentsDialog.vue new file mode 100644 index 00000000..39d403f6 --- /dev/null +++ b/frontend/src/components/AllstudentsDialog.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/frontend/src/components/home/cards/GroupCard.vue b/frontend/src/components/home/cards/GroupCard.vue index 0f8e3655..e5022614 100644 --- a/frontend/src/components/home/cards/GroupCard.vue +++ b/frontend/src/components/home/cards/GroupCard.vue @@ -44,5 +44,7 @@ const amountOfMembers = computed(() => { diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 92402ee1..66aeb865 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -109,6 +109,7 @@ export default { group: { not_found: "Group not found", not_found2: "No groups found", + error: "Error loading page", groups: "Groups:", members: "Members:", actions: "Actions:", @@ -118,5 +119,9 @@ export default { leave_group: "Leave group", remove_group: "Delete group", create_group: "New group", + no_students: "No students found", + close: "close", + all_students: "All students", + all_students_course: "All students in course:", }, }; diff --git a/frontend/src/i18n/locales/nl.ts b/frontend/src/i18n/locales/nl.ts index 72ed9613..af677829 100644 --- a/frontend/src/i18n/locales/nl.ts +++ b/frontend/src/i18n/locales/nl.ts @@ -110,6 +110,7 @@ export default { group: { not_found: "Groep niet gevonden", not_found2: "Geen groepen teruggevonden", + error: "Fout bij het laden van de pagina", groups: "Groepen:", members: "Leden:", actions: "Acties:", @@ -119,5 +120,9 @@ export default { leave_group: "Verlaten", remove_group: "Groep verwijderen", create_group: "Nieuwe groep", + no_students: "Geen studenten gevonden", + close: "sluiten", + all_students: "Alle studenten", + all_students_course: "Alle studenten in vak:", }, }; diff --git a/frontend/src/views/GroupsView.vue b/frontend/src/views/GroupsView.vue index 36e5315e..2fd42a10 100644 --- a/frontend/src/views/GroupsView.vue +++ b/frontend/src/views/GroupsView.vue @@ -1,22 +1,30 @@