diff --git a/frontend/src/i18n/locale/de.json b/frontend/src/i18n/locale/de.json index 3740e5e5..fe47cefc 100644 --- a/frontend/src/i18n/locale/de.json +++ b/frontend/src/i18n/locale/de.json @@ -41,6 +41,7 @@ }, "read-more": "Mehr lesen", "new-assignment": "Neue Aufgabe", + "edit-assignment": "Zuordnung bearbeiten", "next": "nächste", "previous": "vorherige", "groups": "Gruppen", diff --git a/frontend/src/i18n/locale/en.json b/frontend/src/i18n/locale/en.json index 63ccbf78..bb8ecc44 100644 --- a/frontend/src/i18n/locale/en.json +++ b/frontend/src/i18n/locale/en.json @@ -41,6 +41,7 @@ }, "read-more": "Read more", "new-assignment": "New Assignment", + "edit-assignment": "Edit Assignment", "next": "next", "previous": "previous", "groups": "Groups", diff --git a/frontend/src/i18n/locale/fr.json b/frontend/src/i18n/locale/fr.json index fd7b3ea4..de45efe2 100644 --- a/frontend/src/i18n/locale/fr.json +++ b/frontend/src/i18n/locale/fr.json @@ -41,6 +41,7 @@ }, "read-more": "En savoir plus", "new-assignment": "Nouveau travail", + "edit-assignment": "Modifier le travail", "next": "suivant", "previous": "précédent", "groups": "Groupes", diff --git a/frontend/src/i18n/locale/nl.json b/frontend/src/i18n/locale/nl.json index c707a354..09f8a0fb 100644 --- a/frontend/src/i18n/locale/nl.json +++ b/frontend/src/i18n/locale/nl.json @@ -41,6 +41,7 @@ }, "read-more": "Lees meer", "new-assignment": "Nieuwe opdracht", + "edit-assignment": "Opdracht bewerken", "next": "volgende", "previous": "vorige", "groups": "Groepen", diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index b8f023b1..e2339218 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -10,10 +10,11 @@ import CreateDiscussion from "@/views/discussions/CreateDiscussion.vue"; import CallbackPage from "@/views/CallbackPage.vue"; import UserDiscussions from "@/views/discussions/UserDiscussions.vue"; import UserClasses from "@/views/classes/UserClasses.vue"; -import UserAssignments from "@/views/classes/UserAssignments.vue"; +import UserAssignments from "@/views/assignments/UserAssignments.vue"; import authState from "@/services/auth/auth-service.ts"; import UserHomePage from "@/views/homepage/UserHomePage.vue"; import SingleTheme from "@/views/SingleTheme.vue"; +import EditAssignment from "@/views/assignments/EditAssignment.vue"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -85,6 +86,11 @@ const router = createRouter({ name: "SingleAssigment", component: SingleAssignment, }, + { + path: ":id/edit", + name: "EditAssignment", + component: EditAssignment, + }, ] }, diff --git a/frontend/src/views/assignments/AssignmentForm.vue b/frontend/src/views/assignments/AssignmentForm.vue new file mode 100644 index 00000000..afe3165c --- /dev/null +++ b/frontend/src/views/assignments/AssignmentForm.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/frontend/src/views/assignments/CreateAssignment.vue b/frontend/src/views/assignments/CreateAssignment.vue index 2b9e2c12..8ca4fb38 100644 --- a/frontend/src/views/assignments/CreateAssignment.vue +++ b/frontend/src/views/assignments/CreateAssignment.vue @@ -1,241 +1,12 @@ - diff --git a/frontend/src/views/assignments/EditAssignment.vue b/frontend/src/views/assignments/EditAssignment.vue new file mode 100644 index 00000000..3339bbae --- /dev/null +++ b/frontend/src/views/assignments/EditAssignment.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/frontend/src/views/assignments/StudentAssignments.vue b/frontend/src/views/assignments/StudentAssignments.vue deleted file mode 100644 index 1a35a59f..00000000 --- a/frontend/src/views/assignments/StudentAssignments.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/frontend/src/views/assignments/TeacherAssignments.vue b/frontend/src/views/assignments/TeacherAssignments.vue deleted file mode 100644 index 1a35a59f..00000000 --- a/frontend/src/views/assignments/TeacherAssignments.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/frontend/src/views/classes/UserAssignments.vue b/frontend/src/views/assignments/UserAssignments.vue similarity index 100% rename from frontend/src/views/classes/UserAssignments.vue rename to frontend/src/views/assignments/UserAssignments.vue