Add ordering slide type
Participants bring shuffled items into the correct order and submit it once. The admin enters the items in the correct order and can reorder them by drag & drop or arrow keys. Closing the voting reveals the solution: how many got it completely right and how often each item was placed correctly; participants see whether their order was right. The drag & drop mechanics of the slide list are extracted into a reusable makeSortable() helper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4eed568a64
commit
918e077734
17 files changed
+922
-95
No files matched your search
@@ -96,6 +96,8 @@ $url = fn(string $name, array $params = []) => ['_name' => $name, 'token' => $ad
|
||||
'vote' => __('Abstimmung läuft'),
|
||||
'discuss' => __('Fragen werden besprochen'),
|
||||
][$slide->qaStage()]) ?> · <?= __n('max. {0} Upvote pro Person', 'max. {0} Upvotes pro Person', (int)$slide->setting('max_upvotes'), (int)$slide->setting('max_upvotes')) ?></span>
|
||||
<?php elseif ($slide->isOrder() && !$slide->is_voting_open) : ?>
|
||||
<span class="muted">· <?= __('Abstimmung geschlossen, aufgelöst') ?></span>
|
||||
<?php elseif (!$slide->is_voting_open) : ?><span class="muted">· <?= __('Abstimmung geschlossen') ?></span><?php endif; ?>
|
||||
<?php if ($slide->isPrivate()) : ?><span class="badge" title="<?= __('Antworten werden nicht öffentlich angezeigt') ?>">🔒 <?= __('anonym') ?></span><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -108,6 +110,11 @@ $url = fn(string $name, array $params = []) => ['_name' => $name, 'token' => $ad
|
||||
fn($o) => $o->is_correct ? '✓ ' . $o->label : $o->label,
|
||||
$slide->slide_options,
|
||||
))) ?></p>
|
||||
<?php elseif ($slide->isOrder() && $slide->slide_options) : ?>
|
||||
<p class="slide-item__options muted"><?= h(implode(' → ', array_map(
|
||||
fn($o) => $o->label,
|
||||
$slide->slide_options,
|
||||
))) ?></p>
|
||||
<?php endif; ?>
|
||||
<details class="slide-embed">
|
||||
<summary><?= __('Einbett-Link') ?></summary>
|
||||
|
||||
Reference in new issue
Block a user