Add optional comment field to multiple choice slides
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:
1 parent
28bfd535f4
commit
61718ed7c6
14 files changed
+330
-29
No files matched your search
@@ -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']) : ?>
|
||||
|
||||
Reference in new issue
Block a user