Compare commits

..
2 Commits
Author SHA1 Message Date
Michael Stangl 5cb31e9dd4 ein paar Screenshots der Vorbildseiten dazu 2026-09-17 17:28:28 +02:00
Michael Stangl 118f2d0709 Web-GUI: Gruppentabelle nach Strafpunkten filtern
Nur geteilte Gruppen (mit Strafpunkten) werden direkt angezeigt;
Gruppen ohne Strafpunkte landen in einem einklappbaren Bereich.
2026-08-25 09:18:24 +02:00
22 changed files with 13 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

+13 -2
View File
@@ -409,11 +409,22 @@ async function zeigeVariante(i) {
}
html += '</tbody></table>';
const zeile = g => '<tr><td>' + g.name + '</td><td>' + g.anzahl + '</td><td>' +
g.teilungen + '</td><td>' + g.wert + '</td></tr>';
const geteilt = v.gruppen.filter(g => g.teilungen > 0 || g.wert > 0);
const ungeteilt = v.gruppen.filter(g => !(g.teilungen > 0 || g.wert > 0));
html += '<h2 style="margin-top:1rem">Gruppen</h2>' +
'<table><thead><tr><th>Gruppe</th><th>Personen</th><th>Teilungen</th><th>Strafpunkte</th></tr></thead><tbody>' +
v.gruppen.map(g => '<tr><td>' + g.name + '</td><td>' + g.anzahl + '</td><td>' +
g.teilungen + '</td><td>' + g.wert + '</td></tr>').join('') +
geteilt.map(zeile).join('') +
'</tbody></table>';
if (ungeteilt.length) {
html += '<details style="margin-top:.5rem">' +
'<summary>' + ungeteilt.length + ' Gruppen ohne Strafpunkte</summary>' +
'<table style="margin-top:.5rem"><thead><tr><th>Gruppe</th><th>Personen</th><th>Teilungen</th><th>Strafpunkte</th></tr></thead><tbody>' +
ungeteilt.map(zeile).join('') +
'</tbody></table></details>';
}
document.getElementById('ergebnisTabellen').innerHTML = html;
// Raumplan der gewaehlten Variante — inline einbetten (nicht als <img>),