Add initial Plenario live polling app
CI / Deploy / test (push) Successful in 49s
CI / Deploy / deploy (push) Failing after 5s

CakePHP 5.4 app for live polls: create via email without login, manage
via secret admin link, join via code. Includes slide types (choice,
wordcloud, open, scale, content), presenter mode, CSV export, captcha,
throttling, tests and Gitea CI/deploy workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 13:24:29 +01:00
commit eb319f8c1e
120 files changed
+15572

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<?php
/**
* Confirmation after creating a poll.
*
* @var \App\View\AppView $this
* @var array{email: string, title: string, mailSent: bool, adminUrl: string|null} $created
*/
$this->assign('title', __('Umfrage erstellt'));
$this->assign('noindex', '1');
?>
<section class="card card--narrow center">
<div class="icon-circle" aria-hidden="true">✉</div>
<h1><?= __('Fast geschafft!') ?></h1>
<?php if ($created['mailSent']) : ?>
<p class="lead"><?= __('Wir haben den Admin-Link für „{0}“ an <strong>{1}</strong> geschickt.', h($created['title']), h($created['email'])) ?></p>
<p><?= __('Öffne die E-Mail und klicke auf den Link, um Fragen anzulegen. Schau ggf. auch im Spam-Ordner nach.') ?></p>
<?php else : ?>
<p class="lead"><?= __('Die Umfrage wurde angelegt, aber die E-Mail an {0} konnte nicht verschickt werden.', h($created['email'])) ?></p>
<p><?= __('Versuche es später über „Admin-Link verloren?“ erneut.') ?></p>
<?php endif; ?>
<?php if (!empty($created['adminUrl'])) : ?>
<div class="devnote">
<strong><?= __('Entwicklungsmodus') ?></strong>
<p><?= __('Admin-Link direkt (nur sichtbar, weil showAdminLinkAfterCreate aktiv ist):') ?></p>
<a class="button button--primary" href="<?= h($created['adminUrl']) ?>"><?= __('Zur Verwaltung') ?></a>
</div>
<?php endif; ?>
</section>
+60
View File
@@ -0,0 +1,60 @@
<?php
/**
* Start page: create a poll (e-mail, no login) or join one by code.
*
* @var \App\View\AppView $this
* @var \App\Model\Entity\Poll $poll
* @var array<string, mixed> $captcha
*/
$this->assign('title', __('Live-Umfragen ohne Login'));
?>
<section class="hero">
<h1><?= __('Live-Umfragen für Vorträge, Workshops und Meetings') ?></h1>
<p class="lead"><?= __('Fragen anlegen, Code zeigen, Ergebnisse live sehen. Ohne Konto – der Verwaltungslink kommt per E-Mail.') ?></p>
</section>
<div class="grid grid--2">
<section class="card">
<h2><?= __('Neue Umfrage erstellen') ?></h2>
<?= $this->Form->create($poll, ['url' => ['_name' => 'create'], 'novalidate' => false]) ?>
<?= $this->Form->control('title', [
'label' => __('Titel'),
'placeholder' => __('z. B. Team-Retro Oktober'),
'maxlength' => 200,
'required' => true,
]) ?>
<?= $this->Form->control('email', [
'label' => __('Deine E-Mail-Adresse'),
'type' => 'email',
'placeholder' => 'name@example.org',
'required' => true,
'autocomplete' => 'email',
]) ?>
<?= $this->element('captcha', ['captcha' => $captcha]) ?>
<p class="hint"><?= __('Wir schicken dir einen geheimen Admin-Link. Die Adresse wird nur dafür verwendet.') ?></p>
<?= $this->Form->button(__('Umfrage erstellen'), ['class' => 'button button--primary']) ?>
<?= $this->Form->end() ?>
</section>
<section class="card card--accent">
<h2><?= __('An einer Umfrage teilnehmen') ?></h2>
<?= $this->Form->create(null, ['url' => ['_name' => 'join'], 'type' => 'get']) ?>
<?= $this->Form->control('code', [
'label' => __('Teilnahme-Code'),
'placeholder' => 'K7P 2QX',
'class' => 'input-code',
'autocomplete' => 'off',
'autocapitalize' => 'characters',
'required' => true,
]) ?>
<?= $this->Form->button(__('Teilnehmen'), ['class' => 'button']) ?>
<?= $this->Form->end() ?>
</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>
+26
View File
@@ -0,0 +1,26 @@
<?php
/**
* Join form (/join, /p).
*
* @var \App\View\AppView $this
* @var string $code
*/
$this->assign('title', __('Teilnehmen'));
?>
<section class="card card--narrow center">
<h1><?= __('Teilnehmen') ?></h1>
<p class="lead"><?= __('Gib den Code ein, der in der Präsentation angezeigt wird.') ?></p>
<?= $this->Form->create(null, ['url' => ['_name' => 'join'], 'type' => 'get']) ?>
<?= $this->Form->control('code', [
'label' => ['text' => __('Teilnahme-Code'), 'class' => 'sr-only'],
'value' => $code,
'placeholder' => 'K7P 2QX',
'class' => 'input-code input-code--big',
'autocomplete' => 'off',
'autocapitalize' => 'characters',
'autofocus' => true,
'required' => true,
]) ?>
<?= $this->Form->button(__('Los geht’s'), ['class' => 'button button--primary button--block']) ?>
<?= $this->Form->end() ?>
</section>
+23
View File
@@ -0,0 +1,23 @@
<?php
/**
* Re-send admin links.
*
* @var \App\View\AppView $this
* @var array<string, mixed> $captcha
*/
$this->assign('title', __('Admin-Link verloren?'));
?>
<section class="card card--narrow">
<h1><?= __('Admin-Link verloren?') ?></h1>
<p><?= __('Gib die E-Mail-Adresse ein, mit der du deine Umfragen erstellt hast. Wir schicken dir alle zugehörigen Admin-Links erneut zu.') ?></p>
<?= $this->Form->create(null, ['url' => ['_name' => 'recover']]) ?>
<?= $this->Form->control('email', [
'label' => __('E-Mail-Adresse'),
'type' => 'email',
'required' => true,
'autocomplete' => 'email',
]) ?>
<?= $this->element('captcha', ['captcha' => $captcha]) ?>
<?= $this->Form->button(__('Links zuschicken'), ['class' => 'button button--primary']) ?>
<?= $this->Form->end() ?>
</section>