2024-03-15 15:12:01 +01:00
|
|
|
<script setup>
|
|
|
|
import i18n from "@/i18n.js"
|
2024-03-25 09:57:35 +01:00
|
|
|
import {provide, reactive, ref} from 'vue'
|
2024-03-17 15:59:12 +01:00
|
|
|
import { getStudents } from '../rest/Users.js'
|
2024-03-25 09:57:35 +01:00
|
|
|
import AboutStudent from "@/Apps/AboutStudent.vue";
|
2024-03-17 15:59:12 +01:00
|
|
|
const users = await getStudents();
|
2024-03-25 09:57:35 +01:00
|
|
|
|
|
|
|
let targetRegNo = "";
|
|
|
|
let list = ref(true);
|
|
|
|
</script>
|
|
|
|
|
2024-03-23 23:56:24 +01:00
|
|
|
<template style="margin-top:5%;">
|
2024-03-25 09:57:35 +01:00
|
|
|
<div v-if="list === false">
|
|
|
|
<AboutStudent :target=targetRegNo />
|
2024-04-01 11:43:42 +02:00
|
|
|
<button style="background-color:rgb(105,05,105);width:5%; margin-left: 10%;" @click="list = true;">Back</button>
|
2024-03-25 09:57:35 +01:00
|
|
|
</div>
|
2024-04-01 10:40:36 +02:00
|
|
|
<div style="display:flex; justify-content:center; " v-for="item in users" v-if="list === true">
|
2024-03-15 15:12:01 +01:00
|
|
|
<div class="bodu">
|
|
|
|
<div class="container">
|
2024-03-15 20:23:33 +01:00
|
|
|
<div class="status"><a style="margin-left:30px">{{item.status}}</a></div>
|
2024-03-17 15:59:12 +01:00
|
|
|
<div class="option"><a>{{item.role}}</a></div>
|
2024-03-15 15:12:01 +01:00
|
|
|
<div class="surname"><a>{{item.lastName}}</a></div>
|
|
|
|
<div class="firstname"><a>{{item.firstName}}</a></div>
|
2024-03-25 09:57:35 +01:00
|
|
|
<div class="infos">
|
|
|
|
<button style="background-color:rgb(105,05,105);" @click="list = false; targetRegNo = item.regNo;">{{i18n("request.moreInfos")}} </button>
|
|
|
|
</div>
|
2024-03-15 20:23:33 +01:00
|
|
|
</div>
|
2024-03-15 15:12:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.container{
|
|
|
|
color:white;
|
|
|
|
height:100px;
|
2024-03-15 20:23:33 +01:00
|
|
|
font-size:30px;
|
2024-03-15 15:12:01 +01:00
|
|
|
display:grid;
|
2024-04-01 11:43:42 +02:00
|
|
|
grid-template-columns:21.7% 21.7% 21.7% 20% 13.1%;
|
2024-03-15 15:12:01 +01:00
|
|
|
grid-template-areas:
|
2024-03-15 20:23:33 +01:00
|
|
|
"status option surname firstname infos";
|
2024-03-15 15:12:01 +01:00
|
|
|
column-gap:10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.infos {
|
|
|
|
grid-area:infos;
|
|
|
|
align-self:center;
|
|
|
|
}
|
|
|
|
|
2024-03-15 20:23:33 +01:00
|
|
|
.option{
|
|
|
|
grid-area:option;
|
2024-03-15 15:12:01 +01:00
|
|
|
align-self:center;
|
|
|
|
}
|
|
|
|
|
2024-03-15 20:23:33 +01:00
|
|
|
.status{
|
|
|
|
grid-area:status;
|
2024-03-15 15:12:01 +01:00
|
|
|
align-self:center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.surname{
|
|
|
|
grid-area:surname;
|
|
|
|
align-self:center;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.firstname{
|
|
|
|
grid-area:firstname;
|
|
|
|
align-self:center;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
button{
|
|
|
|
font-size:15px;
|
2024-04-01 11:43:42 +02:00
|
|
|
height:50px;
|
|
|
|
width:75%;
|
2024-03-15 15:12:01 +01:00
|
|
|
border:none;
|
|
|
|
border-radius:20px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.bodu {
|
2024-03-23 23:56:24 +01:00
|
|
|
margin-top:2%;
|
|
|
|
width:66%;
|
2024-03-15 15:12:01 +01:00
|
|
|
border:2px solid black;
|
|
|
|
border-radius:9px;
|
|
|
|
background-color:rgb(50,50,50);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|