List all slide types on the start page
CI / Deploy / test (push) Successful in 1m2s
CI / Deploy / deploy (push) Skipped

The feature list was hard-coded and missed quiz, Q&A, content and
YouTube slides. It is now rendered from Slide::typeLabels().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 16:17:39 +01:00
1 parent f0c6687100
commit 69d557c15a
4 files changed
+41 -7

No files matched your search

+12 -5
View File
@@ -5,6 +5,8 @@
* @var \App\View\AppView $this
* @var \App\Model\Entity\Poll $poll
* @var array<string, mixed> $captcha
* @var array<string, string> $typeLabels
* @var array<string, string> $typeDescriptions
*/
$this->assign('title', __('Live-Umfragen ohne Login'));
?>
@@ -53,9 +55,14 @@ $this->assign('title', __('Live-Umfragen ohne Login'));
</section>
</div>
<section class="features">
<div><strong><?= __('Multiple Choice') ?></strong><span><?= __('Balkendiagramm in Echtzeit') ?></span></div>
<div><strong><?= __('Wortwolke') ?></strong><span><?= __('Begriffe sammeln und gewichten') ?></span></div>
<div><strong><?= __('Offene Fragen') ?></strong><span><?= __('Freitext-Antworten live') ?></span></div>
<div><strong><?= __('Skala') ?></strong><span><?= __('Bewertungen mit Durchschnitt') ?></span></div>
<section class="features-section" aria-labelledby="features-title">
<h2 id="features-title"><?= __('Folientypen') ?></h2>
<ul class="features">
<?php foreach ($typeLabels as $type => $label) : ?>
<li class="features__item type-card--<?= h($type) ?>">
<strong><?= h($label) ?></strong>
<span><?= h($typeDescriptions[$type] ?? '') ?></span>
</li>
<?php endforeach; ?>
</ul>
</section>