Add optional comment field to multiple choice slides
CI / Deploy / PHP 8.4 (push) Successful in 1m11s
CI / Deploy / PHP 8.5 (push) Successful in 1m11s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Participants can justify their choice; the comment is stored once in the
first response row, rotates on the stage like scale comments and is listed
in the admin area and the PDF export.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-13 09:29:25 +01:00
1 parent 28bfd535f4
commit 61718ed7c6
14 files changed
+330 -29

No files matched your search

+12
View File
@@ -103,6 +103,18 @@ $bar = function (float $percent, bool $ok = false): string {
<?php endforeach; ?>
</tbody>
</table>
<?php if ($slide->hasComments()) : ?>
<h3><?= __n('{0} Kommentar', '{0} Kommentare', count($r['comments']), count($r['comments'])) ?></h3>
<?php if ($r['comments'] === []) : ?>
<p class="empty"><?= __('Keine Kommentare.') ?></p>
<?php else : ?>
<ol class="list">
<?php foreach ($r['comments'] as $comment) : ?>
<li><?= nl2br(h($comment['text'])) ?></li>
<?php endforeach; ?>
</ol>
<?php endif; ?>
<?php endif; ?>
<?php elseif ($slide->type === 'quiz') : ?>
<?php if (!$r['revealed']) : ?>