forked from ScoDoc/DocScoDoc
fix afffichage bulletin si date naissance ansente
This commit is contained in:
parent
8bf5a0ab3e
commit
56d9681c87
@ -51,26 +51,31 @@ 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 = `
|
||||
<div class=info_etudiant>
|
||||
<div class=civilite>
|
||||
${civilite(data.etudiant.civilite)}
|
||||
${data.etudiant.nom}
|
||||
${data.etudiant.prenom}
|
||||
né${(data.etudiant.civilite == "F") ? "e" : ""} le ${ISOToDate(data.etudiant.date_naissance)}
|
||||
</div>
|
||||
<div class=numerosEtudiant>
|
||||
Numéro étudiant : ${data.etudiant.code_nip}
|
||||
Code INE : ${data.etudiant.code_ine}
|
||||
</div>
|
||||
<div>${data.formation.titre}</div>
|
||||
|
||||
</div>
|
||||
`;
|
||||
let output = `
|
||||
<div class=info_etudiant>
|
||||
<div class=civilite>
|
||||
${civilite(data.etudiant.civilite)}
|
||||
${data.etudiant.nom}
|
||||
${data.etudiant.prenom}`;
|
||||
|
||||
document.querySelector(".infoEtudiant").innerHTML = output;
|
||||
if(data.etudiant.date_naissance){
|
||||
output += `né${(data.etudiant.civilite == "F") ? "e" : ""} le ${ISOToDate(data.etudiant.date_naissance)}`;
|
||||
}
|
||||
|
||||
output += `
|
||||
</div>
|
||||
<div class=numerosEtudiant>
|
||||
Numéro étudiant : ${data.etudiant.code_nip}
|
||||
Code INE : ${data.etudiant.code_ine}
|
||||
</div>
|
||||
<div>${data.formation.titre}</div>
|
||||
|
||||
</div>
|
||||
`;
|
||||
|
||||
document.querySelector(".infoEtudiant").innerHTML = output;
|
||||
}
|
||||
|
||||
/*******************************/
|
||||
|
Loading…
Reference in New Issue
Block a user