total_1ère
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
|
||||
function profil(adherent_type) {
|
||||
let profil1, profil2, profil3 ;
|
||||
console.log ("function profil.adherent_type: ", adherent_type)
|
||||
console.log ("function profil.adherent_type: ", adherent_type);
|
||||
adherent_type = (adherent_type || "").trim().toLowerCase();
|
||||
if (adherent_type === "famille") {
|
||||
profil1 = "Famille";
|
||||
console.log("profil1 : ", profil1);
|
||||
@@ -22,29 +23,30 @@ function profil(adherent_type) {
|
||||
}
|
||||
if (adherent_type === "prof_stagiaire") {
|
||||
profil1 = "Professeur";
|
||||
profil2 = "Professeur stagiaire";
|
||||
profil2 = "Stagiaire ESA";
|
||||
console.log("profil1 : ", profil1);
|
||||
console.log("profil2 : ", profil2);
|
||||
}
|
||||
if (adherent_type === "prof_stagiaire_famille") {
|
||||
profil1 = "Professeur";
|
||||
profil2 = "Professeur stagiaire";
|
||||
profil2 = "Stagiaire ESA";
|
||||
profil3 = "Élève";
|
||||
console.log("profil1 : ", profil1);
|
||||
console.log("profil2 : ", profil2);
|
||||
console.log("profil3 : ", profil3);
|
||||
}
|
||||
if (adherent_type === "prof_stagiaire1") {
|
||||
profil1 = "Professeur stagiaire";
|
||||
profil1 = "Stagiaire ESA";
|
||||
console.log("profil1 : ", profil1);
|
||||
}
|
||||
if (adherent_type === "prof_stagiaire1_famille") {
|
||||
profil1 = "Professeur stagiaire";
|
||||
profil1 = "Stagiaire ESA";
|
||||
profil2 = "Élève";
|
||||
console.log("profil1 : ", profil1);
|
||||
console.log("profil2 : ", profil2);
|
||||
}
|
||||
console.log("RETURN profil1 : ", profil1);
|
||||
|
||||
//return profil1;
|
||||
return [profil1, profil2, profil3];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user