Keep scale labels in place when switching to stars
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
166cb475c6
commit
fa15a45eb2
2 files changed
+5
-1
No files matched your search
@@ -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'],
|
||||
|
||||
Reference in new issue
Block a user