Show the answers page in the modal dialog
CI / Deploy / PHP 8.4 (push) Successful in 1m18s
CI / Deploy / PHP 8.5 (push) Successful in 1m18s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-17 14:29:15 +01:00
1 parent 64abb56a63
commit 1c294d7dc7
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ $hasInternal = array_filter($slides, fn($slide) => !$slide->is_hidden && $slide-
'choice' => __('Kommentare'),
default => __('Antworten'),
}; ?>
<a class="button button--small button--icon" href="<?= $this->Url->build($url('slides:answers', ['id' => $slide->id])) ?>"
<a class="button button--small button--icon" data-modal href="<?= $this->Url->build($url('slides:answers', ['id' => $slide->id])) ?>"
title="<?= h($answersLabel) ?>" aria-label="<?= h(__('{0} der Folie „{1}“ ansehen', $answersLabel, $slide->question)) ?>">📊</a>
<?php endif; ?>
<a class="button button--small button--icon" data-modal href="<?= $this->Url->build($url('slides:edit', ['id' => $slide->id])) ?>"
+2 -2
View File
@@ -24,12 +24,12 @@ $count = match (true) {
?>
<p><a href="<?= $this->Url->build(['_name' => 'admin', 'token' => $adminToken]) ?>">← <?= __('Zurück zur Verwaltung') ?></a></p>
<section class="card">
<section class="card" data-modal-content>
<p class="eyebrow">
<?= h($slide->typeLabel()) ?>
<?php if ($slide->isPrivate()) : ?>· 🔒 <?= $scale !== null ? __('Internes Feedback') : __('Anonymes Feedback') ?><?php endif; ?>
</p>
<h1><?= h($slide->question) ?></h1>
<h1 id="modal-title"><?= h($slide->question) ?></h1>
<?php if ($scale !== null) : ?>
<p class="muted"><?= __n('{0} Bewertung', '{0} Bewertungen', $count, $count) ?></p>
<?php elseif ($isChoice) : ?>