Reset poll to "not started" and keep prepared Q&A questions
Resetting a poll now also clears the live/paused slide so the presentation starts over. Questions entered beforehand on Q&A slides are kept by default (only their upvotes are removed); the dashboard offers a checkbox to delete them too. Resetting a single slide always keeps them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19320f01c4
commit
97a60290b4
7 files changed
+119
-22
No files matched your search
@@ -286,13 +286,22 @@ $hasInternal = array_filter($slides, fn($slide) => !$slide->is_hidden && $slide-
|
||||
]) ?>
|
||||
|
||||
<h3><?= __('Umfrage zurücksetzen') ?></h3>
|
||||
<p class="hint"><?= __('Löscht alle Antworten aller Folien, z. B. für eine neue Gruppe. Folien und Einstellungen bleiben erhalten.') ?></p>
|
||||
<p class="hint"><?= __('Löscht alle Antworten aller Folien und setzt die Präsentation auf „nicht gestartet“ zurück, z. B. für eine neue Gruppe. Folien und Einstellungen bleiben erhalten.') ?></p>
|
||||
<?php if ($responseCounts !== []) : ?>
|
||||
<p class="hint"><?= $this->Html->link(__('Ergebnisse vorher als PDF sichern'), '#export') ?></p>
|
||||
<?= $this->Form->postButton(__('Alle Antworten löschen'), $url('admin:reset'), [
|
||||
<?= $this->Form->create(null, ['url' => $url('admin:reset')]) ?>
|
||||
<?php if ($hasPrepared) : ?>
|
||||
<?= $this->Form->control('keep_prepared', [
|
||||
'type' => 'checkbox',
|
||||
'checked' => true,
|
||||
'label' => __('Vorab eingetragene Fragen (Fragen & Antworten) behalten'),
|
||||
]) ?>
|
||||
<?php endif; ?>
|
||||
<?= $this->Form->button(__('Alle Antworten löschen'), [
|
||||
'class' => 'button button--small button--danger',
|
||||
'data-confirm' => __('Alle Antworten aller Folien unwiderruflich löschen?'),
|
||||
]) ?>
|
||||
<?= $this->Form->end() ?>
|
||||
<?php else : ?>
|
||||
<p class="hint"><em><?= __('Noch nichts zurückzusetzen: Es gibt keine Antworten.') ?></em></p>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in new issue
Block a user