$state * @var string $participantHash Seed for the shuffled items of ordering slides * @var string|null $ownText Own open answer or scale comment (editable while voting is open) * @var int $pollIntervalMs */ use App\Service\VoteService; $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; $timer = $state['timer'] ?? 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) : ?>
Format->text($slide->description) ?>
isInteractive()) : ?>

question) ?>

description) : ?>
Format->text($slide->description) ?>
element('slide_image', compact('slide', 'poll')) ?>

question) ?>

description) : ?>
Format->text($slide->description) ?>
element('slide_image', compact('slide', 'poll')) ?>

✓

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

✓

✗

✓

✗

isVotingOpen()) : ?>

✓

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

✓

isVotingOpen()) : $isOpen = $slide->type === 'open'; ?>

__('Antwort bearbeiten'), $ownText !== null => __('Kommentar bearbeiten'), default => __('Kommentar hinzufügen'), } ?> Form->create(null, ['url' => ['_name' => 'participate:edit', 'code' => $poll->join_code], 'class' => 'vote-form']) ?> Form->hidden('slide_id', ['value' => $slide->id]) ?>

type === 'choice' ? __('Möglich, solange die Abstimmung läuft. Ein leeres Feld entfernt deinen Kommentar, deine Auswahl bleibt.') : __('Möglich, solange die Abstimmung läuft. Ein leeres Feld entfernt deinen Kommentar, deine Bewertung bleibt.')) ?>

Form->button($isOpen ? __('Antwort speichern') : __('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) : ?>
hasComments()) : ?> type === 'open') : ?> isPrivate()) : ?>

🔒

type === 'scale') : $maxValue = (int)$slide->setting('scale_max'); ?> isStarRating()) : ?>
isPrivate() ? ' aria-describedby="private-hint"' : '' ?>>
isPrivate() ? ' aria-describedby="private-hint"' : '' ?>> setting('scale_min'); $v <= $maxValue; $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) : ?>