feat(frontend): alle leerpaden en klasses worden gefetched via de controllers
This commit is contained in:
parent
23947ecd92
commit
1328771551
7 changed files with 113 additions and 83 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
/**
|
||||
* Submits the form data to the backend.
|
||||
*
|
||||
|
@ -16,21 +15,21 @@ import type {AssignmentDTO} from "@dwengo-1/common/interfaces/assignment";
|
|||
|
||||
export const submitForm = async (
|
||||
assignmentTitle: string,
|
||||
selectedLearningPath: any,
|
||||
selectedLearningPath: string,
|
||||
selectedClass: string,
|
||||
groups: string[][],
|
||||
groups: string[],
|
||||
deadline: string,
|
||||
description: string,
|
||||
currentLanguage: string
|
||||
) => {
|
||||
const formData: AssignmentDTO = {
|
||||
id: 0,
|
||||
id: 4,
|
||||
class: selectedClass,
|
||||
title: assignmentTitle,
|
||||
description: description,
|
||||
learningPath: selectedLearningPath,
|
||||
language: currentLanguage,
|
||||
groups: [],
|
||||
language: currentLanguage
|
||||
//groups: [],
|
||||
//deadline: deadline,
|
||||
};
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ const teacher02: Student = {username: "id12", firstName: "John", lastName: "Hiat
|
|||
const teacher03: Student = {username: "id13", firstName: "Aaron", lastName: "Lewis", classes: []};
|
||||
|
||||
const class01: Class = {
|
||||
id: "34d484a1-295f-4e9f-bfdc-3e7a23d86a89",
|
||||
id: "8764b861-90a6-42e5-9732-c0d9eb2f55f9",
|
||||
displayName: "class 01",
|
||||
teachers: [teacher01],
|
||||
students: [student01, student02],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue