Let scale slides hide the average or the distribution on stage

The average is now the headline of a scale result and the distribution a
compact detail below it. Two new settings (show_average, show_distribution)
hide either part in the presentation; evaluation and PDF stay complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 13:29:35 +01:00
1 parent 239599e6a3
commit bf16ac0d3b
8 files changed
+183 -15

No files matched your search

+14
View File
@@ -180,6 +180,20 @@ $optionsError = $slide->getError('options_text');
'placeholder' => __('z. B. sehr'), 'value' => $settings['max_label'],
]) ?>
</div>
<fieldset class="scale-parts">
<legend><?= __('In der Präsentation zeigen') ?></legend>
<?= $this->Form->control('settings.show_average', [
'type' => 'checkbox',
'label' => __('Durchschnitt'),
'checked' => (bool)$settings['show_average'],
]) ?>
<?= $this->Form->control('settings.show_distribution', [
'type' => 'checkbox',
'label' => __('Verteilung der Stimmen'),
'checked' => (bool)$settings['show_distribution'],
]) ?>
<p class="hint"><?= __('Ohne beides zeigt die Präsentation nur die Anzahl der Bewertungen (und ggf. die Kommentare). Die Auswertung in der Verwaltung und der PDF-Export enthalten immer alles.') ?></p>
</fieldset>
<?= $this->Form->control('settings.comments', [
'type' => 'checkbox',
'label' => __('Kommentarfeld anzeigen (Teilnehmende können ihre Bewertung optional begründen)'),