Allow resetting the whole poll from the dashboard
Deletes all responses of all slides, puts every slide back to its initial state and restarts the presentation. Slides, settings, links and the join code are kept. The per-slide reset shares the logic via ResetService and now also reopens closed slides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ee593da0e6
commit
e1b327899f
8 files changed
+247
-15
No files matched your search
@@ -236,6 +236,18 @@ $hasInternal = array_filter($slides, fn($slide) => $slide->isInteractive() && $s
|
||||
'confirm' => __('Neuen Admin-Link erzeugen? Der aktuelle Link funktioniert danach nicht mehr.'),
|
||||
]) ?>
|
||||
|
||||
<h3><?= __('Umfrage zurücksetzen') ?></h3>
|
||||
<p class="hint"><?= __('Löscht alle Antworten aller Folien und setzt Quiz, Fragerunden und Präsentation auf Anfang – z. B. für eine neue Gruppe. Folien, Einstellungen, Links und Code bleiben erhalten.') ?></p>
|
||||
<?php if ($responseCounts !== [] || $poll->current_slide_id !== null || $poll->isPaused()) : ?>
|
||||
<p class="hint"><?= $this->Html->link(__('Ergebnisse vorher als PDF sichern'), '#export') ?></p>
|
||||
<?= $this->Form->postLink(__('Umfrage zurücksetzen'), $url('admin:reset'), [
|
||||
'class' => 'button button--small button--danger',
|
||||
'confirm' => __('Alle Antworten aller Folien unwiderruflich löschen und die Umfrage auf Anfang setzen?'),
|
||||
]) ?>
|
||||
<?php else : ?>
|
||||
<p class="hint"><em><?= __('Noch nichts zurückzusetzen: Es gibt keine Antworten.') ?></em></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<h3><?= __('Umfrage löschen') ?></h3>
|
||||
<?= $this->Form->create(null, ['url' => $url('admin:delete')]) ?>
|
||||
<?= $this->Form->control('confirm_code', [
|
||||
|
||||
Reference in new issue
Block a user