Add admin menu drawer and poll cloning, drop participant screen tools
CI / Deploy / PHP 8.5 (push) Successful in 1m51s
CI / Deploy / PHP 8.4 (push) Successful in 1m51s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped

- Remove fullscreen and wake lock buttons from the participant view.
- Turn the admin sidebar into a drawer below 900px, opened from a header
  menu button next to the theme switch (progressive enhancement).
- Add "Umfrage kopieren": clone a poll with all slides, options and images
  but without responses, with its own join code and admin link.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-20 10:57:33 +01:00
1 parent 0f91377de3
commit bd57f23be6
15 files changed
+374 -138

No files matched your search

-21
View File
@@ -40,27 +40,6 @@ $countdown = function (?int $remaining): string {
<p class="eyebrow eyebrow--poll center"><?= h($poll->title) ?></p>
<?php // Icon buttons in the header, next to the theme switch. Hidden unless the browser supports the API (no fullscreen on iPhone). ?>
<?php $this->start('headerTools'); ?>
<button type="button" class="theme-switch" data-fullscreen-toggle hidden aria-pressed="false"
data-label-on="<?= h(__('Vollbild beenden')) ?>" data-label-off="<?= h(__('Vollbild')) ?>"
aria-label="<?= h(__('Vollbild')) ?>" title="<?= h(__('Vollbild')) ?>">
<svg class="theme-switch__icon" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"/>
</svg>
</button>
<button type="button" class="theme-switch" data-wakelock-toggle hidden aria-pressed="false"
data-label-on="<?= h(__('Display bleibt an – tippen zum Ausschalten')) ?>"
data-label-off="<?= h(__('Display bleibt nicht an – tippen zum Anlassen')) ?>"
aria-label="<?= h(__('Display anlassen')) ?>" title="<?= h(__('Display anlassen')) ?>">
<svg class="theme-switch__icon" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>
</svg>
</button>
<?php $this->end(); ?>
<?php if (!$poll->is_active) : ?>
<section class="card center">
<h1><?= __('Diese Umfrage ist geschlossen.') ?></h1>