1
0
forked from ScoDoc/ScoDoc

Merge pull request 'update partition editor suite à update API' (#468) from jmplace/ScoDoc-Lille:update_partition_editor into master

Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/468
This commit is contained in:
Emmanuel Viennet 2022-08-03 09:15:38 +02:00
commit cdf17873b0

View File

@ -96,9 +96,9 @@
let output = "";
arrayGroups.forEach((groupe) => {
/***************/
outputMasques += `<div data-idgroupe="${groupe.id}"><span class="editing move">||</span><span>${groupe.name}</span><span class="editing modif">✏️</span><span class="editing suppr"></span></div>`;
outputMasques += `<div data-idgroupe="${groupe.id}"><span class="editing move">||</span><span>${groupe.group_name}</span><span class="editing modif">✏️</span><span class="editing suppr"></span></div>`; // patch JMP (renommage du champ name dans l API)
/***************/
output += templateGroupe_zoneGroupes(groupe.id, groupe.name);
output += templateGroupe_zoneGroupes(groupe.id, groupe.group_name); // patch JMP (renommage du champ name dans l API)
})
return output;
})()}
@ -134,7 +134,7 @@
})
arrayGroups.forEach((groupe) => {
output += `
<label><input type=radio name="${partition.id}-${etudiant.etudid}" value="${groupe.id}" ${(etudiant.partitions[partition.id] == groupe.id) ? "checked" : ""}><span>${groupe.name}</span></label>`;
<label><input type=radio name="${partition.id}-${etudiant.etudid}" value="${groupe.id}" ${(etudiant.partitions[partition.id] == groupe.id) ? "checked" : ""}><span>${groupe.group_name}</span></label>`;
if (etudiant.partitions[partition.id] == groupe.id) {
affected = true;