forked from ScoDoc/ScoDoc
Merge pull request 'Décisions RCUE relevé' (#429) from lehmann/ScoDoc-Front:master into master
Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/429
This commit is contained in:
commit
180c21ffc4
@ -224,9 +224,26 @@ class releveBUT extends HTMLElement {
|
|||||||
<div class=abs>Non justifiées</div>
|
<div class=abs>Non justifiées</div>
|
||||||
<div>${data.semestre.absences?.injustifie ?? "-"}</div>
|
<div>${data.semestre.absences?.injustifie ?? "-"}</div>
|
||||||
<div class=abs>Total</div><div>${data.semestre.absences?.total ?? "-"}</div>
|
<div class=abs>Total</div><div>${data.semestre.absences?.total ?? "-"}</div>
|
||||||
|
</div>`;
|
||||||
|
if(data.semestre.decision_rcue.length){
|
||||||
|
output += `
|
||||||
|
<div>
|
||||||
|
<div class=enteteSemestre>RCUE</div><div></div>
|
||||||
|
${(()=>{
|
||||||
|
let output = "";
|
||||||
|
data.semestre.decision_rcue.forEach(competence=>{
|
||||||
|
output += `<div class=rang>${competence.niveau.competence.titre}</div><div>${competence.code}</div>`;
|
||||||
|
})
|
||||||
|
return output;
|
||||||
|
})()}
|
||||||
</div>
|
</div>
|
||||||
<a class=photo href="${data.etudiant.fiche_url}"><img src="${data.etudiant.photo_url || "default_Student.svg"}" alt="photo de l'étudiant" title="fiche de l'étudiant" height="120" border="0"></a>
|
</div>`
|
||||||
`;
|
}
|
||||||
|
|
||||||
|
output += `
|
||||||
|
<a class=photo href="${data.etudiant.fiche_url}">
|
||||||
|
<img src="${data.etudiant.photo_url || "default_Student.svg"}" alt="photo de l'étudiant" title="fiche de l'étudiant" height="120" border="0">
|
||||||
|
</a>`;
|
||||||
/*${data.semestre.groupes.map(groupe => {
|
/*${data.semestre.groupes.map(groupe => {
|
||||||
return `
|
return `
|
||||||
<div>
|
<div>
|
||||||
@ -240,9 +257,11 @@ class releveBUT extends HTMLElement {
|
|||||||
}).join("")
|
}).join("")
|
||||||
}*/
|
}*/
|
||||||
this.shadow.querySelector(".infoSemestre").innerHTML = output;
|
this.shadow.querySelector(".infoSemestre").innerHTML = output;
|
||||||
if(data.semestre.decision_annee?.code){
|
|
||||||
|
|
||||||
|
/*if(data.semestre.decision_annee?.code){
|
||||||
this.shadow.querySelector(".decision_annee").innerHTML = "Décision année : " + data.semestre.decision_annee.code + " - " + correspondanceCodes[data.semestre.decision_annee.code];
|
this.shadow.querySelector(".decision_annee").innerHTML = "Décision année : " + data.semestre.decision_annee.code + " - " + correspondanceCodes[data.semestre.decision_annee.code];
|
||||||
}
|
}*/
|
||||||
|
|
||||||
this.shadow.querySelector(".decision").innerHTML = data.semestre.situation || "";
|
this.shadow.querySelector(".decision").innerHTML = data.semestre.situation || "";
|
||||||
/*if (data.semestre.decision?.code) {
|
/*if (data.semestre.decision?.code) {
|
||||||
|
Loading…
Reference in New Issue
Block a user