Drop the image description field
CI / Deploy / PHP 8.4 (push) Successful in 1m36s
CI / Deploy / PHP 8.5 (push) Successful in 1m36s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Slide images are shown on the presenter's screen, so a description for
screen readers is not asked for any more. The column stays (always empty).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-21 13:35:48 +01:00
1 parent ebaf6fbe53
commit 7a80794ded
12 files changed
+110 -35

No files matched your search

+3
View File
@@ -103,6 +103,9 @@ $bar = function (float $percent, bool $ok = false): string {
<?php endforeach; ?>
</tbody>
</table>
<?php if (!empty($r['commentOnly'])) : ?>
<p class="muted"><?= __('{0}× nur Kommentar (nicht in den Stimmen)', (int)$r['commentOnly']) ?></p>
<?php endif; ?>
<?php if ($slide->hasComments()) : ?>
<h3><?= __n('{0} Kommentar', '{0} Kommentare', count($r['comments']), count($r['comments'])) ?></h3>
<?php if ($r['comments'] === []) : ?>
+6 -3
View File
@@ -282,13 +282,16 @@ $countdown = function (?int $remaining): string {
<label class="choice">
<input type="<?= $multiple ? 'checkbox' : 'radio' ?>"
name="<?= $multiple ? 'option_ids[]' : 'option_id' ?>"
value="<?= (int)$option->id ?>" <?= $multiple ? '' : 'required' ?>>
value="<?= (int)$option->id ?>" <?= $multiple || $slide->hasCommentOnly() ? '' : 'required' ?>>
<span><?= h($option->label) ?></span>
</label>
<?php endforeach; ?>
</div>
<?php if ($slide->hasComments()) : ?>
<label class="scale-comment" for="choice-comment"><?= __('Kommentar (optional)') ?></label>
<?php if ($slide->hasCommentOnly()) : ?>
<p class="hint"><?= __('Du kannst auch nur einen Kommentar abgeben, ohne etwas auszuwählen.') ?></p>
<?php endif; ?>
<textarea id="choice-comment" name="comment" rows="3" maxlength="500"
placeholder="<?= __('Möchtest du deine Auswahl begründen?') ?>"></textarea>
<?php endif; ?>
@@ -359,8 +362,8 @@ $countdown = function (?int $remaining): string {
} ?></h2>
<?php if ($words !== null && $words['allowUpvotes'] && $slide->is_voting_open) : ?>
<p class="hint" data-upvote-hint><?= $words['allowDownvotes']
? __('Tippe auf einen Begriff, um ihn zu unterstützen, oder auf „−“, um ihn abzulehnen.')
: __('Tippe auf einen Begriff, um ihn zu unterstützen.') ?></p>
? __('Tippe auf „+“, um einen Begriff zu unterstützen, oder auf „−“, um ihn abzulehnen.')
: __('Tippe auf „+“, um einen Begriff zu unterstützen.') ?></p>
<?php endif; ?>
<div data-results></div>
</section>
+9 -4
View File
@@ -138,10 +138,15 @@ $optionsError = $slide->getError('options_text');
'label' => __('Mehrfachauswahl erlauben'),
'checked' => (bool)$settings['multiple'],
]) ?>
<?= $this->Form->control('settings.comments', [
'type' => 'checkbox',
'label' => __('Kommentarfeld anzeigen (Teilnehmende können ihre Auswahl optional begründen)'),
'checked' => (bool)$settings['comments'],
<?= $this->Form->control('settings.comment_mode', [
'type' => 'select',
'label' => __('Kommentarfeld'),
'options' => [
'off' => __('Kein Kommentarfeld'),
'rating' => __('Kommentar optional, die Auswahl ist Pflicht'),
'only' => __('Kommentar optional, auch ein Kommentar ohne Auswahl genügt'),
],
'value' => empty($settings['comments']) ? 'off' : (empty($settings['comment_only']) ? 'rating' : 'only'),
]) ?>
<p class="hint"><?= __('Die Kommentare laufen in der Präsentation nacheinander unter dem Ergebnis durch (nicht bei den Teilnehmenden). Das Tempo stellst du für die ganze Umfrage in den Einstellungen im Dashboard ein.') ?></p>
<?php elseif ($slide->type === 'open') : ?>