grr covention formattage JS à définir

This commit is contained in:
Emmanuel Viennet 2021-12-14 14:33:10 +01:00
parent af5c79d95d
commit 0d75d64e85

View File

@ -51,20 +51,20 @@ function showData(data) {
/* Informations sur l'étudiant */
/********************************/
function showInformations(data) {
document.querySelector(".studentPic").src = data.etudiant.photo_url || "default_Student.svg";
document.querySelector(".studentPic").src = data.etudiant.photo_url || "default_Student.svg";
let output = `
let output = `
<div class=info_etudiant>
<div class=civilite>
${civilite(data.etudiant.civilite)}
${data.etudiant.nom}
${data.etudiant.prenom}`;
if(data.etudiant.date_naissance){
output += `${(data.etudiant.civilite == "F") ? "e" : ""} le ${ISOToDate(data.etudiant.date_naissance)}`;
}
if (data.etudiant.date_naissance) {
output += `${(data.etudiant.civilite == "F") ? "e" : ""} le ${ISOToDate(data.etudiant.date_naissance)}`;
}
output += `
output += `
</div>
<div class=numerosEtudiant>
Numéro étudiant : ${data.etudiant.code_nip}
@ -75,7 +75,7 @@ function showInformations(data) {
</div>
`;
document.querySelector(".infoEtudiant").innerHTML = output;
document.querySelector(".infoEtudiant").innerHTML = output;
}
/*******************************/