From 09d3cbb3f44a8b6f2346236733ced3908a5a3cad Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 1 Jul 2026 14:26:35 +0200 Subject: db: add DB class and adapt to only store a single JSON blob per entry --- mass-graducation/index.css | 5 +++++ mass-graducation/index.html | 2 +- mass-graducation/src/main.js | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) (limited to 'mass-graducation') diff --git a/mass-graducation/index.css b/mass-graducation/index.css index e9cca02..e5abccf 100644 --- a/mass-graducation/index.css +++ b/mass-graducation/index.css @@ -77,6 +77,11 @@ .group-member-name { } +.group-member-observation-icon { + border: none; + background: none; +} + .group-member-green, .group-member-orange, .group-member-red { margin: 5px; } diff --git a/mass-graducation/index.html b/mass-graducation/index.html index 4fbd669..88ac916 100644 --- a/mass-graducation/index.html +++ b/mass-graducation/index.html @@ -8,7 +8,7 @@ -
+
{ + if (!graduation.isObserved()) { + return; + } + ob.innerHTML = "👁" + ob.addEventListener("click", () => observationClickHandler(li, student) ); + }); + li.appendChild(ob); + + const i = document.createElement("img"); + i.classList.add("group-member-icon") + student.getGraduation().then((graduation) => { + i.src = graduation.getIcon(); + }); + // TODO: fetch the students state icon + li.appendChild(i); + const n = document.createElement("span"); n.classList.add("group-member-name") n.innerHTML = `${student.name}`; @@ -96,6 +127,12 @@ async function loadGroup(selected) { li.appendChild(b); } + const p = document.createElement("button"); + p.classList.add("group-member-print") + p.innerHTML = `print`; + p.addEventListener("click", () => print() ); + li.appendChild(p); + ul.appendChild(li); } } -- cgit v1.2.3