Remove the "voting open" checkbox from the slide form
CI / Deploy / PHP 8.5 (push) Successful in 1m16s
CI / Deploy / PHP 8.4 (push) Successful in 1m19s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

is_voting_open is presenter state (SlideControlService), so the form
never takes it over anymore, for all slide types instead of only quiz
and Q&A. New slides start open (quiz closed), as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-17 14:21:29 +01:00
1 parent 83c76d72ec
commit bb2d1443cf
4 files changed
+9 -16

No files matched your search

-8
View File
@@ -354,14 +354,6 @@ $optionsError = $slide->getError('options_text');
<p class="hint"><?= __('Ablauf in der Präsentation: 1. Fragen sammeln, 2. abstimmen, 3. besprechen – die Frage mit den meisten Upvotes zuerst. Ohne Upvotes entfällt Schritt 2. Du schaltest die Schritte selbst weiter.') ?></p>
<?php endif; ?>
<?php if ($slide->isInteractive() && !$slide->isQuiz() && !$slide->isQa()) : ?>
<?= $this->Form->control('is_voting_open', [
'type' => 'checkbox',
'label' => __('Abstimmung geöffnet'),
'checked' => $isNew ? true : $slide->is_voting_open,
]) ?>
<?php endif; ?>
<div class="form-actions">
<?= $this->Form->button($isNew ? __('Folie anlegen') : __('Speichern'), ['class' => 'button button--primary']) ?>
<a class="button button--ghost" data-modal-close href="<?= $this->Url->build(['_name' => 'admin', 'token' => $adminToken]) ?>"><?= __('Abbrechen') ?></a>