$state * @var int $pollIntervalMs */ $this->assign('title', $poll->title); $this->assign('bodyClass', 'participant'); $voteUrl = ['_name' => 'participate:vote', 'code' => $poll->join_code]; $words = $state['words'] ?? null; $quiz = $state['quiz'] ?? null; $countdown = function (?int $remaining): string { if ($remaining === null) { return ''; } return '

' . '' . h(__('Noch')) . ' ' . '' . sprintf('%d:%02d', intdiv($remaining, 60), $remaining % 60) . '' . '

'; }; ?>

title) ?>

is_active) : ?>

isInteractive()) : ?>

question) ?>

description) : ?>
description)) ?>

question) ?>

description) : ?>

description)) ?>

✓

Form->create(null, ['url' => $voteUrl, 'class' => 'vote-form', 'data-quiz-form' => true]) ?> Form->hidden('slide_id', ['value' => $slide->id]) ?>
slide_options as $index => $option) : ?>
Form->button(__('Antwort abgeben'), ['class' => 'button button--primary button--block']) ?> Form->end() ?>

✓

✗

is_voting_open) : ?> Form->create(null, ['url' => $voteUrl, 'class' => 'vote-form word-form', 'data-word-form' => true]) ?> Form->hidden('slide_id', ['value' => $slide->id]) ?>

Form->button(__('Begriff senden'), ['class' => 'button button--primary button--block']) ?> Form->end() ?>

✓

is_voting_open) : ?>

Form->create(null, ['url' => $voteUrl, 'class' => 'vote-form']) ?> Form->hidden('slide_id', ['value' => $slide->id]) ?> type === 'choice') : $multiple = (bool)$slide->setting('multiple'); ?>

slide_options as $option) : ?>
type === 'open') : ?> type === 'scale') : ?>
setting('scale_min'); $v <= (int)$slide->setting('scale_max'); $v++) : ?>
setting('min_label')) ?> setting('max_label')) ?>
Form->button(__('Absenden'), ['class' => 'button button--primary button--block']) ?> Form->end() ?>
>

__('Wortwolke'), $quiz !== null => __('Auflösung'), default => __('Ergebnisse'), } ?>

is_voting_open) : ?>