}> $sections
* @var bool $includeInternal
* @var bool $hasInternal Poll has private slides
* @var \Cake\I18n\DateTime $exportedAt
*/
$this->assign('title', $poll->title);
$number = fn(float $value, int $places = 0) => $this->Number->format($value, [
'places' => $places,
'precision' => max(1, $places),
'locale' => 'de_DE',
]);
$bar = function (float $percent, bool $ok = false): string {
$width = max(0, min(100, $percent));
if ($width <= 0) {
// An empty fill would still be drawn as a hairline.
return '
';
}
return '';
};
?>
= __('Ergebnisse') ?>
= h($poll->title) ?>
= __n('{0} Folie mit Abstimmung', '{0} Folien mit Abstimmung', count($sections), count($sections)) ?>
· = __('Stand: {0}', $exportedAt->i18nFormat('dd.MM.yyyy')) ?>
= __('Vollständige Fassung.') ?>
= __('Dieses Dokument enthält anonymes bzw. internes Feedback, das in der Präsentation nicht gezeigt wurde. Bitte nicht weitergeben.') ?>
= __('Fassung ohne interne Inhalte.') ?>
= __('Bei anonymem bzw. internem Feedback ist nur die Zahl der Teilnehmenden enthalten.') ?>
= __('Diese Umfrage hat noch keine Folien mit Abstimmung.') ?>
type === 'scale';
// Short sections stay on one page, long lists may break across pages.
$long = count($r['answers'] ?? []) > 8 || count($r['words'] ?? []) > 15
|| count($r['questions'] ?? []) > 10 || count($r['comments'] ?? []) > 5;
?>
= __('Folie {0}', $section['number']) ?> · = h($slide->typeLabel()) ?>
· = $isScale ? __('Internes Feedback') : __('Anonymes Feedback') ?>
= h($slide->question) ?>
description) : ?>
= $this->Format->text($slide->description) ?>
= __n('{0} Person hat teilgenommen', '{0} Personen haben teilgenommen', $participants, $participants) ?>
= $isScale
? __('Verteilung, Durchschnitt und Kommentare sind in dieser Fassung nicht enthalten.')
: __('Die Antworten sind in dieser Fassung nicht enthalten.') ?>
= __('Keine Antworten.') ?>
type === 'choice') : ?>
| = __('Antwort') ?> | = __('Stimmen') ?> | = __('Anteil') ?> | |
| = h($option['label']) ?> |
= (int)$option['count'] ?> |
= $number((float)$option['percent']) ?> % |
= $bar((float)$option['percent']) ?> |
type === 'quiz') : ?>
= __('Das Quiz wurde nicht beendet, daher gibt es keine Auswertung.') ?>
= __('{0} von {1}', (int)$r['correctCount'], $participants) ?> = __('richtig beantwortet') ?>
| = __('Antwort') ?> | = __('Stimmen') ?> | = __('Anteil') ?> | |
| >= $option['correct'] ? '✓ ' : '' ?>= h($option['label']) ?> |
= (int)$option['count'] ?> |
= $number((float)$option['percent']) ?> % |
= $bar((float)$option['percent'], $option['correct']) ?> |
type === 'order') : ?>
= __('Die Abstimmung ist noch offen, die Auflösung gibt es erst nach dem Schließen.') ?>
= __('{0} von {1}', (int)$r['correctCount'], $participants) ?> = __('komplett richtig sortiert') ?>
| = __('Platz') ?> | = __('Eintrag') ?> | = __('richtig platziert') ?> | |
| = (int)$item['position'] ?>. |
= h($item['label']) ?> |
= (int)$item['placed'] ?> (= $number((float)$item['percent']) ?> %) |
= $bar((float)$item['percent'], true) ?> |
type === 'wordcloud') :
$hasDown = array_sum(array_column($r['words'], 'down')) > 0; ?>
| = __('Begriff') ?> | = __('Nennungen') ?> | = __('Downvotes') ?> |
| = h($word['text']) ?> |
= (int)$word['count'] ?> |
= (int)$word['down'] ?> |
type === 'open') : ?>
= __n('{0} Antwort', '{0} Antworten', count($r['answers']), count($r['answers'])) ?> (= __('in Eingangsreihenfolge') ?>)
- = nl2br(h($answer['text'])) ?>
= __('Durchschnitt') ?>:
= $r['average'] === null ? '–' : $number((float)$r['average'], 1) ?>
= !empty($r['stars'])
? __('von {0} Sternen', (int)$r['max'])
: __('auf einer Skala von {0} bis {1}', (int)$r['min'], (int)$r['max']) ?>
| = !empty($r['stars']) ? __('Sterne') : __('Wert') ?> | = __('Anzahl') ?> | = __('Anteil') ?> | |
$bucket) :
$label = match (true) {
$i === 0 => (string)$r['minLabel'],
$i === count($r['buckets']) - 1 => (string)$r['maxLabel'],
default => '',
}; ?>
| >= h($slide->ratingText((int)$bucket['value'])) ?> (= h($label) ?>) |
= (int)$bucket['count'] ?> |
= $number((float)$bucket['percent']) ?> % |
= $bar((float)$bucket['percent']) ?> |
hasComments()) : ?>
= __n('{0} Kommentar', '{0} Kommentare', count($r['comments']), count($r['comments'])) ?>
= __('Keine Kommentare.') ?>
-
= nl2br(h($comment['text'])) ?>
(= __('Bewertung {0}', h($slide->ratingText((int)$comment['value']))) ?>)
type === 'qa') : ?>
= __('Keine Fragen eingereicht.') ?>
0; ?>
| # | = __('Frage') ?> | = __('Upvotes') ?> |
$question) : ?>
| = $i + 1 ?>. |
= nl2br(h($question['text'])) ?> |
= (int)$question['votes'] ?> |