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

+4 -3
View File
@@ -99,7 +99,8 @@ $url = fn(string $name, array $params = []) => ['_name' => $name, 'token' => $ad
<?php elseif ($slide->isOrder() && !$slide->is_voting_open) : ?>
<span class="muted">· <?= __('Abstimmung geschlossen, aufgelöst') ?></span>
<?php elseif (!$slide->is_voting_open) : ?><span class="muted">· <?= __('Abstimmung geschlossen') ?></span><?php endif; ?>
<?php if ($slide->isPrivate()) : ?><span class="badge" title="<?= __('Antworten werden nicht öffentlich angezeigt') ?>">🔒 <?= __('anonym') ?></span><?php endif; ?>
<?php if ($slide->hasComments()) : ?><span class="badge" title="<?= __('Teilnehmende können einen Kommentar abgeben') ?>">💬 <?= __('Kommentare') ?></span><?php endif; ?>
<?php if ($slide->isPrivate()) : ?><span class="badge" title="<?= __('Antworten werden nicht öffentlich angezeigt') ?>">🔒 <?= $slide->type === 'scale' ? __('intern') : __('anonym') ?></span><?php endif; ?>
<?php endif; ?>
</div>
<a class="slide-item__title" href="<?= $this->Url->build($url('slides:edit', ['id' => $slide->id])) ?>"><?= h($slide->question) ?></a>
@@ -134,8 +135,8 @@ $url = fn(string $name, array $params = []) => ['_name' => $name, 'token' => $ad
'title' => __('Diese Folie jetzt den Teilnehmenden zeigen'),
]) ?>
<?php endif; ?>
<?php if ($slide->type === 'open' && $count > 0) : ?>
<a class="button button--small" href="<?= $this->Url->build($url('slides:answers', ['id' => $slide->id])) ?>"><?= __('Antworten') ?></a>
<?php if (($slide->type === 'open' || $slide->isPrivate() || $slide->hasComments()) && $count > 0) : ?>
<a class="button button--small" href="<?= $this->Url->build($url('slides:answers', ['id' => $slide->id])) ?>"><?= $slide->type === 'scale' ? __('Auswertung') : __('Antworten') ?></a>
<?php endif; ?>
<a class="button button--small" href="<?= $this->Url->build($url('slides:edit', ['id' => $slide->id])) ?>"><?= __('Bearbeiten') ?></a>
<?php if ($count > 0) : ?>