Skip to content
Snippets Groups Projects
Commit cac75e5a authored by Moritz Strohm's avatar Moritz Strohm Committed by David Siegfried
Browse files

fix for BIESt closes #519

Merge request studip/studip!664
parent 12aebfb6
No related branches found
No related tags found
No related merge requests found
<ul class="<?= implode(' ', $css_classes) ?>">
<ul class="<?= implode(' ', $css_classes) ?>" aria-label="<?= htmlReady($title) ?>">
<? foreach ($elements as $index => $element): ?>
<? if ($element instanceof LinkElement): ?>
<? $icon = $element->icon ?? null ?>
......
......@@ -21,7 +21,7 @@
<? elseif ($element['type'] == 'select'): ?>
<label>
<?= htmlReady($element['label']) ?>
<select name="<?= htmlReady($element['name']) ?>">
<select name="<?= htmlReady($element['name']) ?>" aria-label="<?= htmlReady($title) ?>">
<? foreach ($element['options'] as $key => $name): ?>
<option value="<?= htmlReady($key) ?>">
<?= htmlReady($name) ?>
......
......@@ -2,7 +2,8 @@
<?= \SelectWidget::arrayToHiddenInput($params) ?>
<?= (strtolower($method) == 'post') ? CSRFProtection::tokenTag() : ''; ?>
<select class="sidebar-selectlist <?= $class ?> <? if ($__is_nested): ?>nested-select<? endif; ?>" <? !empty($size) ? printf('size="%u"', $size) : '' ?> <?= !empty($attributes) ? arrayToHtmlAttributes($attributes) : '' ?>
name="<?= sprintf('%s%s', htmlReady($name), $multiple ? '[]' : '') ?>" <? if ($multiple) echo 'multiple'; ?>>
name="<?= sprintf('%s%s', htmlReady($name), $multiple ? '[]' : '') ?>" <? if ($multiple) echo 'multiple'; ?>
aria-label="<?= htmlReady($title) ?>">
<? foreach ($elements as $element): ?>
<? if ($element instanceof SelectGroupElement && count($element->getElements()) > 0): ?>
......
<div id="layout-sidebar">
<section class="sidebar">
<section class="sidebar" role="complementary" aria-label="<?= _('Seitenleiste') ?>">
<div class="sidebar-image <? if ($avatar) echo 'sidebar-image-with-context'; ?>">
<? if ($avatar) : ?>
<div class="sidebar-context">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment