$state * @var string $participantHash Seed for the shuffled items of ordering slides * @var string|null $ownComment Own comment on a scale slide (editable while voting is open) * @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; $qa = $state['qa'] ?? null; $order = $state['order'] ?? null; $countdown = function (?int $remaining): string { if ($remaining === null) { return ''; } return '

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

'; }; ?>

title) ?>

is_active) : ?>

isPaused()) : ?>

isYouTube()) : $watchUrl = $slide->youtubeWatchUrl(); ?>

question) ?>

description) : ?>
description)) ?>
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() ?>

✓

✗

✓

✗

✓

shuffledOptions($participantHash); ?> Form->create(null, ['url' => $voteUrl, 'class' => 'vote-form order-form', 'data-order-form' => true]) ?> Form->hidden('slide_id', ['value' => $slide->id]) ?>

    $option) : ?>
  1. label) ?>

Form->button(__('Reihenfolge einreichen'), ['class' => 'button button--primary button--block']) ?> Form->end() ?>
Form->create(null, ['url' => $voteUrl, 'class' => 'vote-form qa-form', 'data-qa-form' => true]) ?> Form->hidden('slide_id', ['value' => $slide->id]) ?>

0 ? __('Anonym. Du kannst mehrere Fragen stellen. Schau unten, ob deine Frage schon gestellt wurde – dann unterstützt du sie einfach beim Abstimmen, das nach der Sammelphase beginnt.') : __('Anonym. Du kannst mehrere Fragen stellen. Schau unten, ob deine Frage schon gestellt wurde.') ?>

Form->button(__('Frage einreichen'), ['class' => 'button button--primary button--block']) ?> Form->end() ?> Form->hidden('slide_id', ['value' => $slide->id]) ?>

0) : ?>

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() ?>

✓

type === 'scale' && $slide->hasComments() && $slide->isVotingOpen()) : ?>

Form->create(null, ['url' => ['_name' => 'participate:comment', 'code' => $poll->join_code], 'class' => 'vote-form']) ?> Form->hidden('slide_id', ['value' => $slide->id]) ?>

Form->button(__('Kommentar speichern'), ['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') : ?> isPrivate()) : ?>

🔒

type === 'scale') : ?>
isPrivate() ? ' aria-describedby="private-hint"' : '' ?>> setting('scale_min'); $v <= (int)$slide->setting('scale_max'); $v++) : ?>
setting('min_label')) ?> setting('max_label')) ?>
hasComments()) : ?> isPrivate()) : ?>

🔒

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

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

is_voting_open) : ?>