Partition editor : liens vers etu + bug non affect

This commit is contained in:
Sébastien Lehmann 2023-02-11 14:09:11 +01:00 committed by iziram
parent 107341efab
commit 462db3f9ef
2 changed files with 11 additions and 4 deletions

View File

@ -384,7 +384,14 @@ body.editionActivated .filtres .nonEditable .move{
#zoneChoix .etudiants .nom { #zoneChoix .etudiants .nom {
flex: 1; flex: 1;
} }
#zoneChoix a {
color: #000;
text-decoration: none;
}
#zoneChoix a:hover{
text-decoration: underline;
color: #09c;
}
#zoneChoix .small { #zoneChoix .small {
color: #444; color: #444;
font-size: 8px; font-size: 8px;

View File

@ -123,7 +123,7 @@
etudiants.forEach(etudiant => { etudiants.forEach(etudiant => {
output += ` output += `
<div> <div>
<div class=nom data-etudid="${etudiant.etudid}" data-nom="${etudiant.nom_disp}" data-prenom="${etudiant.prenom}">${etudiant.nom_disp} ${etudiant.prenom}<div class=small>${etudiant.bac}</div></div> <div class=nom data-etudid="${etudiant.etudid}" data-nom="${etudiant.nom_disp}" data-prenom="${etudiant.prenom}"><a href="ficheEtud?etudid=${etudiant.etudid}">${etudiant.nom_disp} ${etudiant.prenom}</a><div class=small>${etudiant.bac}</div></div>
${(() => { ${(() => {
let output = "<div class=grpPartitions>"; let output = "<div class=grpPartitions>";
arrayPartitions.forEach((partition) => { arrayPartitions.forEach((partition) => {
@ -360,7 +360,7 @@
if(to[0] != "n"){ if(to[0] != "n"){
groupeSelected.closest(".grpPartitions").querySelector(`[value="${to}"]`).click(); groupeSelected.closest(".grpPartitions").querySelector(`[value="${to}"]`).click();
}else{ }else{
groupeSelected.closest(".grpPartitions").querySelector(".aucun").click(); groupeSelected.closest(".grpPartitions").querySelector(`[value="aucun"]`).click();
} }
}) })
@ -478,7 +478,7 @@
<div>${name}</div> <div>${name}</div>
<label title="Aucun groupe"> <label title="Aucun groupe">
<input type="radio" name="${r.id}-${etudid}" value="aucun" checked> <input type="radio" name="${r.id}-${etudid}" value="aucun" checked>
<span class="aucun"></span> <span class="aucun">-</span>
</label> </label>
`; `;
div.querySelector("input").addEventListener("input", assignment); div.querySelector("input").addEventListener("input", assignment);