Add Q&A slide type
Participants submit questions, upvote them and the presenter discusses them one by one, most upvoted first. - Stages collect -> vote -> discuss, switched manually by the presenter (V key or stepper, going back is possible) - Configurable upvote budget per participant, freely distributable (several upvotes on one question are allowed), votes can be withdrawn - Participants see all questions while collecting to avoid duplicates; no counts before the discussion - While discussing, next/prev step through the questions before moving to the next slide - Migration: slides.stage, slides.focus_response_id, responses.parent_id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ea944b080f
commit
f0c6687100
21 files changed
+1327
-27
No files matched your search
@@ -93,12 +93,17 @@ $optionsError = $slide->getError('options_text');
|
||||
'label' => match ($slide->type) {
|
||||
'content' => __('Überschrift'),
|
||||
'youtube' => __('Titel'),
|
||||
'qa' => __('Überschrift'),
|
||||
default => __('Frage'),
|
||||
},
|
||||
'maxlength' => 500,
|
||||
'required' => !$slide->isYouTube(),
|
||||
'autofocus' => $isNew && !$slide->isYouTube(),
|
||||
'placeholder' => $slide->isYouTube() ? __('Leer lassen, um den Titel des Videos zu übernehmen') : null,
|
||||
'placeholder' => match (true) {
|
||||
$slide->isYouTube() => __('Leer lassen, um den Titel des Videos zu übernehmen'),
|
||||
$slide->isQa() => __('z. B. Eure Fragen an den Vorstand'),
|
||||
default => null,
|
||||
},
|
||||
'data-youtube-title' => $slide->isYouTube() ? '' : null,
|
||||
]) ?>
|
||||
<?= $this->Form->control('description', [
|
||||
@@ -205,9 +210,24 @@ $optionsError = $slide->getError('options_text');
|
||||
'value' => $settings['time_limit'],
|
||||
]) ?>
|
||||
<p class="hint"><?= __('Das Quiz startet erst, wenn du es in der Präsentation startest. Du kannst es jederzeit vorzeitig beenden.') ?></p>
|
||||
<?php elseif ($slide->type === 'qa') :
|
||||
$upvoteOptions = [];
|
||||
foreach (range(1, \App\Model\Entity\Slide::QA_MAX_UPVOTES) as $n) {
|
||||
$upvoteOptions[$n] = __n('{0} Stimme', '{0} Stimmen', $n, $n);
|
||||
}
|
||||
?>
|
||||
<?= $this->Form->control('settings.max_upvotes', [
|
||||
'type' => 'select',
|
||||
'options' => $upvoteOptions,
|
||||
'label' => __('Upvotes (Stimmen) pro Person'),
|
||||
'value' => $settings['max_upvotes'],
|
||||
'aria-describedby' => 'qa-upvotes-hint',
|
||||
]) ?>
|
||||
<p class="hint" id="qa-upvotes-hint"><?= __('So viele Stimmen hat jede Person beim Abstimmen. Sie lassen sich frei auf Fragen anderer verteilen – mehrere auf eine Frage geben ihr mehr Gewicht.') ?></p>
|
||||
<p class="hint"><?= __('Ablauf in der Präsentation: 1. Fragen sammeln, 2. abstimmen, 3. besprechen – die Frage mit den meisten Upvotes zuerst. Du schaltest die Schritte selbst weiter.') ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($slide->isInteractive() && !$slide->isQuiz()) : ?>
|
||||
<?php if ($slide->isInteractive() && !$slide->isQuiz() && !$slide->isQa()) : ?>
|
||||
<?= $this->Form->control('is_voting_open', [
|
||||
'type' => 'checkbox',
|
||||
'label' => __('Abstimmung geöffnet'),
|
||||
|
||||
Reference in new issue
Block a user