refactoring choices
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
gitea-sonarqube-bot ERROR
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2023-05-23 14:17:45 +02:00
parent 93fef37033
commit ee8ca7134c
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -878,9 +878,15 @@ $labelAlwaysDisplayed = 'Always displayed';
<div class="side-menu-setting-label">
<?php p($l->t('Hide labels on mouse over')); ?>
</div>
<?php
$choices = array_merge(
$choicesYesNo,
['Except the hovered app' => '2']
);
?>
<div class="side-menu-setting-form">
<select id="side-menu-top-menu-mouse-over-hidden-label" name="top-menu-mouse-over-hidden-label" class="side-menu-setting">
<?php foreach (array_merge($choicesYesNo, ['Except the hovered app' => '2']) as $label => $value): ?>
<?php foreach ($choices as $label => $value): ?>
<option value="<?php echo $value ?>" <?php if ($value === $_['top-menu-mouse-over-hidden-label']): ?>selected<?php endif; ?>>
<?php echo $l->t($label); ?>
</option>