From cdc3772384c748f652280acad911f3767f39533f Mon Sep 17 00:00:00 2001 From: LeoMoulin Date: Sat, 20 Apr 2024 12:42:41 +0200 Subject: [PATCH 1/3] Small changes --- frontend/src/Apps/Inscription/AboutRequest.vue | 5 +++++ frontend/src/Apps/Inscription/AboutScholarship.vue | 2 +- frontend/src/Apps/Inscription/AboutStudent.vue | 6 +++++- frontend/src/Apps/Inscription/ExternalCurriculumList.vue | 9 +++++++-- frontend/src/Apps/Login.vue | 4 ++-- frontend/src/rest/uploads.js | 4 ++-- 6 files changed, 22 insertions(+), 8 deletions(-) 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); } } - @@ -113,4 +113,12 @@ async function editExemp(newstate){ background-color:rgb(50,50,50); border-radius:20px; } + +button{ + border:none; + background-color:rgb(239, 60, 168); + border-radius:10px; + height:35px; + margin-top:10px; +} \ No newline at end of file diff --git a/frontend/src/Apps/Inscription/AboutRequest.vue b/frontend/src/Apps/Inscription/AboutRequest.vue index 77565ed..efe401b 100644 --- a/frontend/src/Apps/Inscription/AboutRequest.vue +++ b/frontend/src/Apps/Inscription/AboutRequest.vue @@ -31,7 +31,7 @@ async function editEquivalence(id, newstate){ diff --git a/frontend/src/Apps/Inscription/ExternalCurriculumList.vue b/frontend/src/Apps/Inscription/ExternalCurriculumList.vue index 88fefbb..e608777 100644 --- a/frontend/src/Apps/Inscription/ExternalCurriculumList.vue +++ b/frontend/src/Apps/Inscription/ExternalCurriculumList.vue @@ -53,7 +53,7 @@ async function postExternalCurr(){ if (props.mode === 1){ const temp = await uploadFile(externalCurr.justifdocUrl, "JustificationDocument") - await createExternalCurriculum(externalCurr.inscriptionRequestId, externalCurr.school, externalCurr.formation, externalCurr.completion, externalCurr.startYear, externalCurr.endYear, temp.value.url, externalCurr.userRegNo); + await createExternalCurriculum(externalCurr.inscriptionRequestId, externalCurr.school, externalCurr.formation, externalCurr.completion, externalCurr.startYear, externalCurr.endYear, temp.url, externalCurr.userRegNo); //We refresh the list extCurrList.value = await getExternalCurriculumByUser(externalCurr.userRegNo); list.value = !list.value; @@ -77,9 +77,9 @@