Keep scale labels in place when switching to stars
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 13:08:37 +01:00
1 parent 166cb475c6
commit fa15a45eb2
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -156,7 +156,7 @@ $optionsError = $slide->getError('options_text');
['value' => \App\Model\Entity\Slide::SCALE_STARS, 'text' => __('Sterne (wie bei einer Produktbewertung)')],
], ['value' => $settings['style']]) ?>
</fieldset>
<div class="grid grid--2 grid--tight">
<div class="grid grid--2 grid--fill grid--tight">
<?= $this->Form->control('settings.scale_min', [
'type' => 'select', 'options' => [0 => '0', 1 => '1'],
'label' => __('Von'), 'value' => $settings['scale_min'],
@@ -168,6 +168,9 @@ $optionsError = $slide->getError('options_text');
'label' => $stars ? __('Anzahl Sterne') : __('Bis'), 'value' => $settings['scale_max'],
'data-label-numbers' => __('Bis'), 'data-label-stars' => __('Anzahl Sterne'),
]) ?>
</div>
<?php // Labels in their own row, so hiding "Von" (stars) does not move them. ?>
<div class="grid grid--2 grid--tight">
<?= $this->Form->control('settings.min_label', [
'label' => __('Beschriftung links (optional)'), 'maxlength' => 60,
'placeholder' => __('z. B. gar nicht'), 'value' => $settings['min_label'],