forked from ScoDoc/DocScoDoc
grr covention formattage JS à définir
This commit is contained in:
parent
af5c79d95d
commit
0d75d64e85
@ -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 += `né${(data.etudiant.civilite == "F") ? "e" : ""} le ${ISOToDate(data.etudiant.date_naissance)}`;
|
||||
}
|
||||
if (data.etudiant.date_naissance) {
|
||||
output += `né${(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;
|
||||
}
|
||||
|
||||
/*******************************/
|
||||
|
Loading…
Reference in New Issue
Block a user