diff --git a/frontend/src/Apps/Inscription/AboutRequest.vue b/frontend/src/Apps/Inscription/AboutRequest.vue index c6d15df..767e310 100644 --- a/frontend/src/Apps/Inscription/AboutRequest.vue +++ b/frontend/src/Apps/Inscription/AboutRequest.vue @@ -8,6 +8,7 @@ import {getExternalCurriculumByInscrReq} from "@/rest/externalCurriculum.js"; import {ref} from "vue"; import ExternalCurriculumList from "@/Apps/Inscription/ExternalCurriculumList.vue"; import {editEquivalenceState} from "@/rest/requests.js"; +import {downloadPdf} from "@/rest/uploads.js"; const props = defineProps(['target']); const request = await getRegisters(props.target); @@ -56,6 +57,10 @@ async function editEquivalence(id, newstate){
Cursus voulu : BAB {{cursus.year}} {{cursus.option}}
+
+ Download identity card + +
diff --git a/frontend/src/Apps/Inscription/AboutScholarship.vue b/frontend/src/Apps/Inscription/AboutScholarship.vue index c48cf90..3131785 100644 --- a/frontend/src/Apps/Inscription/AboutScholarship.vue +++ b/frontend/src/Apps/Inscription/AboutScholarship.vue @@ -54,7 +54,7 @@ async function uploadandrefreshScholarshipRequest(){ Birthdate : {{user.birthDate.slice(0,10)}}
- +
diff --git a/frontend/src/Apps/Inscription/AboutStudent.vue b/frontend/src/Apps/Inscription/AboutStudent.vue index 91fb89f..d9bde36 100644 --- a/frontend/src/Apps/Inscription/AboutStudent.vue +++ b/frontend/src/Apps/Inscription/AboutStudent.vue @@ -1,6 +1,6 @@ @@ -118,6 +119,10 @@

Année de fin

+
+

Veuillez soumettre un document attestant de ce parcours

+ +
diff --git a/frontend/src/Apps/Login.vue b/frontend/src/Apps/Login.vue index 531259b..7080f26 100644 --- a/frontend/src/Apps/Login.vue +++ b/frontend/src/Apps/Login.vue @@ -108,13 +108,13 @@ const val = await register(outputs.firstname, outputs.surname, outputs.birthday, outputs.password, outputs.email, outputs.address, outputs.country, outputs.curriculum, ppData, identityCardFile.url, new Date(), outputs.equivalenceState, justif); for (let item in externalCurrTab.value){ - await createExternalCurriculum(val.id, externalCurrTab.value[item].school, externalCurrTab.value[item].formation, externalCurrTab.value[item].completion, externalCurrTab.value[item].startYear, externalCurrTab.value[item].endYear, externalCurrTab.value[item].justifdocUrl); + const temp = await uploadFile(externalCurrTab.value[item].justifdocUrl, "JustificationDocument") + await createExternalCurriculum(val.id, externalCurrTab.value[item].school, externalCurrTab.value[item].formation, externalCurrTab.value[item].completion, externalCurrTab.value[item].startYear, externalCurrTab.value[item].endYear, temp.value.url); } } -