Add internal feedback and comments to scale slides

- Setting "private": distribution and average are only shown in the
  admin evaluation page and CSV export, the stage shows just the count.
- Setting "comments": optional comment field for participants; on public
  scales the comments rotate on the results ("Kommentar X von N") with
  previous/next/pause controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-08 15:52:55 +01:00
1 parent a138425ab0
commit 238797ecfd
15 files changed
+665 -23

No files matched your search

+11 -1
View File
@@ -239,7 +239,7 @@ $countdown = function (?int $remaining): string {
<?php endif; ?>
<?php elseif ($slide->type === 'scale') : ?>
<div class="scale">
<div class="scale"<?= $slide->isPrivate() ? ' aria-describedby="private-hint"' : '' ?>>
<?php for ($v = (int)$slide->setting('scale_min'); $v <= (int)$slide->setting('scale_max'); $v++) : ?>
<label class="scale__step">
<input type="radio" name="value" value="<?= $v ?>" required>
@@ -251,6 +251,16 @@ $countdown = function (?int $remaining): string {
<span><?= h((string)$slide->setting('min_label')) ?></span>
<span><?= h((string)$slide->setting('max_label')) ?></span>
</div>
<?php if ($slide->hasComments()) : ?>
<label class="scale-comment" for="scale-comment"><?= __('Kommentar (optional)') ?></label>
<textarea id="scale-comment" name="comment" rows="3" maxlength="500"
placeholder="<?= __('Möchtest du deine Bewertung begründen?') ?>"></textarea>
<?php endif; ?>
<?php if ($slide->isPrivate()) : ?>
<p class="hint private-hint" id="private-hint">
🔒 <?= __('Internes Feedback: Das Ergebnis wird nicht öffentlich angezeigt und deine Bewertung nicht mit deinem Namen gespeichert.') ?>
</p>
<?php endif; ?>
<?php endif; ?>
<?= $this->Form->button(__('Absenden'), ['class' => 'button button--primary button--block']) ?>