From c2baf1b6a72f6a3c690193129625f7b1c71292be Mon Sep 17 00:00:00 2001 From: lehmann Date: Tue, 26 Jul 2022 11:14:36 +0200 Subject: [PATCH] Partition editor : corrections bugs --- app/static/css/partition_editor.css | 2 +- app/templates/scolar/partition_editor.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/static/css/partition_editor.css b/app/static/css/partition_editor.css index 151905208..c7abf6779 100644 --- a/app/static/css/partition_editor.css +++ b/app/static/css/partition_editor.css @@ -37,7 +37,7 @@ } } -.edition{ +.edition { background: #ddd; border-radius: 8px; padding: 8px 32px 8px 8px; diff --git a/app/templates/scolar/partition_editor.html b/app/templates/scolar/partition_editor.html index 0b204602b..f8aba70df 100644 --- a/app/templates/scolar/partition_editor.html +++ b/app/templates/scolar/partition_editor.html @@ -328,7 +328,7 @@ var url = `/ScoDoc/api/partition/${this.parentElement.dataset.idpartition}/group/create`; var payload = { group_name: name }; } - let div = document.createElement("div"); + var div = document.createElement("div"); div.innerHTML = ` || ${name} @@ -361,7 +361,7 @@ div.dataset.idpartition = r.id; // Ajout dans la zone masques - let div = document.createElement("div"); + div = document.createElement("div"); div.dataset.idpartition = r.id; div.innerHTML = `
Non affectés - ${name}
@@ -418,7 +418,7 @@ document.querySelectorAll(`#zoneChoix .etudiants [data-idpartition="${idpartition}"]`).forEach(e => { let etudid = e.parentElement.parentElement.dataset.etudid; let label = document.createElement("label"); - label.innerHTML = `${name}`; + label.innerHTML = `${name}`; label.querySelector("input").addEventListener("input", assignment); e.appendChild(label); }) @@ -474,7 +474,7 @@ var payload = { group_name: obj.innerText } document.querySelectorAll(`#zoneChoix .etudiants [value="${obj.parentElement.dataset.idgroupe}"]+span`).forEach(e => { e.innerText = obj.innerText }); - document.querySelector(`#zoneGroupes [value="${obj.parentElement.dataset.idgroupe}"]>div`).innerText = obj.innerText; + document.querySelector(`#zoneGroupes [data-idgroupe="${obj.parentElement.dataset.idgroupe}"]>div`).innerText = obj.innerText; } fetch(url,