From 16f8aa449ea89cdcfd6a95abde33e662c52723d4 Mon Sep 17 00:00:00 2001 From: Joyelle Ndagijimana Date: Sun, 6 Apr 2025 23:30:08 +0200 Subject: [PATCH] feat(frontend): klas tonen bij assignment card --- frontend/src/i18n/locale/de.json | 3 +- frontend/src/i18n/locale/en.json | 3 +- frontend/src/i18n/locale/fr.json | 3 +- frontend/src/i18n/locale/nl.json | 3 +- frontend/src/utils/tempData.ts | 1 + .../src/views/assignments/AssignmentForm.vue | 238 ------------------ .../views/assignments/CreateAssignment.vue | 237 ++++++++++++++++- .../views/assignments/SingleAssignment.vue | 18 +- .../src/views/assignments/UserAssignments.vue | 104 +++++--- 9 files changed, 321 insertions(+), 289 deletions(-) delete mode 100644 frontend/src/views/assignments/AssignmentForm.vue diff --git a/frontend/src/i18n/locale/de.json b/frontend/src/i18n/locale/de.json index fe47cefc..58d92adc 100644 --- a/frontend/src/i18n/locale/de.json +++ b/frontend/src/i18n/locale/de.json @@ -52,5 +52,6 @@ "title": "Titel", "pick-class": "Wählen Sie eine klasse", "choose-students": "Studenten auswählen", - "create-group": "Gruppe erstellen" + "create-group": "Gruppe erstellen", + "class": "klasse" } diff --git a/frontend/src/i18n/locale/en.json b/frontend/src/i18n/locale/en.json index bb8ecc44..55ad29f6 100644 --- a/frontend/src/i18n/locale/en.json +++ b/frontend/src/i18n/locale/en.json @@ -52,5 +52,6 @@ "title": "Title", "pick-class": "Pick a class", "choose-students": "Select students", - "create-group": "Create group" + "create-group": "Create group", + "class": "class" } diff --git a/frontend/src/i18n/locale/fr.json b/frontend/src/i18n/locale/fr.json index de45efe2..517daf0d 100644 --- a/frontend/src/i18n/locale/fr.json +++ b/frontend/src/i18n/locale/fr.json @@ -52,5 +52,6 @@ "title": "Titre", "pick-class": "Choisissez une classe", "choose-students": "Sélectionnez des élèves", - "create-group": "Créer un groupe" + "create-group": "Créer un groupe", + "class": "classe" } diff --git a/frontend/src/i18n/locale/nl.json b/frontend/src/i18n/locale/nl.json index 09f8a0fb..2f983e38 100644 --- a/frontend/src/i18n/locale/nl.json +++ b/frontend/src/i18n/locale/nl.json @@ -52,5 +52,6 @@ "title": "Titel", "pick-class": "Kies een klas", "choose-students": "Studenten selecteren", - "create-group": "Groep aanmaken" + "create-group": "Groep aanmaken", + "class": "klas" } diff --git a/frontend/src/utils/tempData.ts b/frontend/src/utils/tempData.ts index 716b444b..918546ac 100644 --- a/frontend/src/utils/tempData.ts +++ b/frontend/src/utils/tempData.ts @@ -65,6 +65,7 @@ export const assignments: Assignment[] = Array.from({length: 4}, (_, i) => ({ id: `assignment${i}`, title: `Assignment ${i}`, learningPathHruid: 'lphruid', + class: `class 0${i+1}`, description: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. " + "Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, " + diff --git a/frontend/src/views/assignments/AssignmentForm.vue b/frontend/src/views/assignments/AssignmentForm.vue deleted file mode 100644 index 55d83a07..00000000 --- a/frontend/src/views/assignments/AssignmentForm.vue +++ /dev/null @@ -1,238 +0,0 @@ - - - - - diff --git a/frontend/src/views/assignments/CreateAssignment.vue b/frontend/src/views/assignments/CreateAssignment.vue index c900ec50..336a6551 100644 --- a/frontend/src/views/assignments/CreateAssignment.vue +++ b/frontend/src/views/assignments/CreateAssignment.vue @@ -1,20 +1,239 @@ + diff --git a/frontend/src/views/assignments/SingleAssignment.vue b/frontend/src/views/assignments/SingleAssignment.vue index 8b2806ee..1abfd20f 100644 --- a/frontend/src/views/assignments/SingleAssignment.vue +++ b/frontend/src/views/assignments/SingleAssignment.vue @@ -50,6 +50,12 @@ {{ assignment.title }} + + {{ t('class') }}: + + {{ assignment.class }} + + diff --git a/frontend/src/views/assignments/UserAssignments.vue b/frontend/src/views/assignments/UserAssignments.vue index 2a366f18..38f567cc 100644 --- a/frontend/src/views/assignments/UserAssignments.vue +++ b/frontend/src/views/assignments/UserAssignments.vue @@ -42,67 +42,99 @@

{{ t('assignments') }}

- + {{ t('new-assignment') }} - + - {{ assignment.title }} - - {{ assignment.description }} - - - - {{ t('view-assignment') }} - - - {{ t('delete') }} - - + +
+
{{ assignment.title }}
+
+ {{ t('class') }}: + + {{ assignment.class }} + +
+
+
+ + {{ t('view-assignment') }} + +
+
-
+