1
0
forked from ScoDoc/ScoDoc

calendrier_assi_etud: affichage justif à l'état 'modifie'

This commit is contained in:
Emmanuel Viennet 2023-12-23 14:04:46 +01:00
parent e8be809dff
commit b3ba3002ea

View File

@ -169,7 +169,7 @@
right: 0;
background-color: var(--color-justi-invalide) !important;
}
.color.attente::before {
.color.attente::before, .color.modifie::before {
content: "";
position: absolute;
width: 25%;
@ -475,6 +475,10 @@
let est_just = ""
if (dayJustificatifs.some((j) => j.etat.toLowerCase() === "valide")) {
est_just = "est_just";
} else if (dayJustificatifs.some((j) => j.etat.toLowerCase() === "attente")) {
est_just = "attente";
} else if (dayJustificatifs.some((j) => j.etat.toLowerCase() === "modifie")) {
est_just = "modifie";
} else if (dayJustificatifs.some((j) => j.etat.toLowerCase() !== "valide")) {
est_just = "invalide";
}
@ -535,6 +539,8 @@
est_just = ["est_just"];
} else if (justificatifsMatin.some((j) => j.etat.toLowerCase() === "attente")) {
est_just = ["attente"];
} else if (justificatifsMatin.some((j) => j.etat.toLowerCase() === "modifie")) {
est_just = ["modifie"];
}
else if (justificatifsMatin.some((j) => j.etat.toLowerCase() !== "valide")) {
est_just = ["invalide"];
@ -579,8 +585,9 @@
est_just = ["est_just"];
} else if (justificatifsAprem.some((j) => j.etat.toLowerCase() === "attente")) {
est_just = ["attente"];
}
else if (justificatifsAprem.some((j) => j.etat.toLowerCase() !== "valide")) {
} else if (justificatifsAprem.some((j) => j.etat.toLowerCase() === "modifie")) {
est_just = ["modifie"];
} else if (justificatifsAprem.some((j) => j.etat.toLowerCase() !== "valide")) {
est_just = ["invalide"];
}