210 lines
4.3 KiB
Vue
210 lines
4.3 KiB
Vue
<script setup>
|
|
import i18n from "@/i18n.js"
|
|
import {getUser} from '../rest/Users.js'
|
|
import {getcurriculum,getSomeonesCurriculumList} from "@/rest/curriculum.js";
|
|
import {getRegisters} from "@/rest/ServiceInscription.js";
|
|
import {get} from "jsdom/lib/jsdom/named-properties-tracker.js";
|
|
import {getExternalCurriculumByInscrReq} from "@/rest/externalCurriculum.js";
|
|
|
|
const props = defineProps(['target']);
|
|
let request = await getRegisters(props.target);
|
|
const cursus = await getcurriculum(request.curriculum);
|
|
|
|
const externalCurriculum = await getExternalCurriculumByInscrReq(request.id)
|
|
console.log(externalCurriculum)
|
|
function getPP(){
|
|
if(request.profilePictureUrl === null){
|
|
return "/Clyde.png"
|
|
}
|
|
return request.profilePictureUrl;
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div class="body">
|
|
<div class="container">
|
|
<div class="profilPic">
|
|
<img class="subContainter" :src=getPP()>
|
|
</div>
|
|
<div class = "globalInfos">
|
|
<div class="infosContainer">
|
|
<div>
|
|
FirstName/Name : {{request.firstName}} {{request.lastName}}
|
|
</div>
|
|
<div>
|
|
E-mail: {{request.email}}
|
|
</div>
|
|
<div>
|
|
Adresse : {{request.address}}
|
|
</div>
|
|
<div>
|
|
Pays : {{request.country}}
|
|
</div>
|
|
<div>
|
|
Date de naissance : {{request.birthDate}}
|
|
</div>
|
|
<div>
|
|
Cursus voulu : BAB {{cursus.year}} {{cursus.option}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="moreInfos">
|
|
<div class = "oldcursus">
|
|
<div class="listTitle">
|
|
Cursus extérieurs a l'univesité
|
|
</div>
|
|
<div class="listElement">
|
|
<div class=" containerElement" v-for="item in externalCurriculum">
|
|
<div class="formation">item.formation</div>
|
|
<div class="school">item.school</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
<style scoped>
|
|
.container{
|
|
min-width:675px;
|
|
display:grid;
|
|
grid-template-columns:10vw 50vw;
|
|
grid-template-rows:200px auto;
|
|
column-gap:2.7%;
|
|
row-gap:45px;
|
|
grid-template-areas:
|
|
"profilPic globalInfos"
|
|
"minfos minfos";
|
|
}
|
|
|
|
.profilPic{
|
|
grid-area:profilPic;
|
|
width:100%;
|
|
}
|
|
|
|
.globalInfos {
|
|
grid-area:globalInfos;
|
|
align-self :center;
|
|
|
|
}
|
|
|
|
.body {
|
|
min-width:960px;
|
|
width:100%;
|
|
display:flex;
|
|
align-items:center;
|
|
justify-content:center;
|
|
margin-top:5%;
|
|
}
|
|
|
|
.subContainter{
|
|
width:100%;
|
|
background-color:rgb(50,50,50);
|
|
border-radius:20px;
|
|
border:4px solid black;
|
|
}
|
|
|
|
.infosContainer {
|
|
padding-bottom:50px;
|
|
border:2px solid black;
|
|
font-size:25px;
|
|
color:white;
|
|
padding:20px;
|
|
background-color:rgb(50,50,50);
|
|
border-radius:20px;
|
|
}
|
|
|
|
.moreInfos {
|
|
display:grid;
|
|
grid-template-rows:200px auto;
|
|
column-gap:50px;
|
|
row-gap:45px;
|
|
grid-template-areas:
|
|
"minfos minfos";
|
|
grid-template-columns:600px 600px;
|
|
}
|
|
|
|
.listTitle{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width:250px;
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
border:2px solid black;
|
|
font-size:25px;
|
|
color:white;
|
|
padding:20px;
|
|
background-color:rgb(50,50,50);
|
|
border-radius:20px;margin-bottom:10px;
|
|
}
|
|
|
|
.listElement{
|
|
border:2px solid black;
|
|
font-size:25px;
|
|
color:white;
|
|
padding:20px;
|
|
background-color:rgb(50,50,50);
|
|
border-radius:20px;
|
|
margin-bottom:10px;
|
|
}
|
|
|
|
.containerElement{
|
|
justify-content:center;
|
|
display:grid;
|
|
grid-template-columns:100px 100px 300px;
|
|
grid-template-areas:
|
|
"year option dateyear";
|
|
column-gap:40px;
|
|
padding-left: 25px;
|
|
}
|
|
button{
|
|
font-size:15px;
|
|
height:50px;
|
|
width:100px;
|
|
border:none;
|
|
border-radius:20px;
|
|
|
|
}
|
|
|
|
.moreInfos {
|
|
display:grid;
|
|
grid-template-rows:200px auto;
|
|
column-gap:50px;
|
|
row-gap:45px;
|
|
grid-template-areas:
|
|
"minfos minfos";
|
|
grid-template-columns:600px 600px;
|
|
align-items:center;
|
|
justify-content:center;
|
|
margin-left: 320%;
|
|
}
|
|
|
|
.listTitle{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width:250px;
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
border:2px solid black;
|
|
font-size:25px;
|
|
color:white;
|
|
padding:20px;
|
|
background-color:rgb(50,50,50);
|
|
border-radius:20px;margin-bottom:10px;
|
|
}
|
|
|
|
.listElement{
|
|
border:2px solid black;
|
|
font-size:25px;
|
|
color:white;
|
|
padding:20px;
|
|
background-color:rgb(50,50,50);
|
|
border-radius:20px;
|
|
margin-bottom:10px;
|
|
}
|
|
</style> |