Add poll expiry, reminder mail and polls admin CLI
CI / Deploy / PHP 8.4 (push) Successful in 1m57s
CI / Deploy / PHP 8.5 (push) Successful in 2m9s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Polls are deleted POLL_RETENTION_DAYS (default 90) after creation by the
cron job `bin/cake polls cleanup`. POLL_REMINDER_DAYS (default 14) before
that the owner gets a one-time reminder mail (expiry_reminded_at).

New commands: polls list, show (admin link only with --link), delete,
remind, cleanup. The expiry date is shown in the creation mail and the
dashboard. Docs: README, AGENTS.md, .env.example.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 12:46:12 +01:00
1 parent 4caff47a09
commit a19cd8339e
20 files changed
+976 -1

No files matched your search

+3
View File
@@ -289,6 +289,9 @@ $hasInternal = array_filter($slides, fn($slide) => !$slide->is_hidden && $slide-
<section class="card card--danger">
<h2><?= __('Sicherheit') ?></h2>
<?php if ($poll->expiresAt() !== null) : ?>
<p class="hint"><?= __('Diese Umfrage wird am {0} automatisch gelöscht. Sichere die Ergebnisse vorher als PDF.', h($poll->expiresAt()->i18nFormat('dd.MM.yyyy'))) ?></p>
<?php endif; ?>
<p class="hint"><?= __('Link versehentlich geteilt? Erzeuge einen neuen – der alte wird sofort ungültig.') ?></p>
<?= $this->Form->postButton(__('Neuen Admin-Link erzeugen'), $url('admin:rotate'), [
'class' => 'button button--small',