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): ?> <? foreach ($elements as $index => $element): ?>
<? if ($element instanceof LinkElement): ?> <? if ($element instanceof LinkElement): ?>
<? $icon = $element->icon ?? null ?> <? $icon = $element->icon ?? null ?>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<? elseif ($element['type'] == 'select'): ?> <? elseif ($element['type'] == 'select'): ?>
<label> <label>
<?= htmlReady($element['label']) ?> <?= htmlReady($element['label']) ?>
<select name="<?= htmlReady($element['name']) ?>"> <select name="<?= htmlReady($element['name']) ?>" aria-label="<?= htmlReady($title) ?>">
<? foreach ($element['options'] as $key => $name): ?> <? foreach ($element['options'] as $key => $name): ?>
<option value="<?= htmlReady($key) ?>"> <option value="<?= htmlReady($key) ?>">
<?= htmlReady($name) ?> <?= htmlReady($name) ?>
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<?= \SelectWidget::arrayToHiddenInput($params) ?> <?= \SelectWidget::arrayToHiddenInput($params) ?>
<?= (strtolower($method) == 'post') ? CSRFProtection::tokenTag() : ''; ?> <?= (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) : '' ?> <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): ?> <? foreach ($elements as $element): ?>
<? if ($element instanceof SelectGroupElement && count($element->getElements()) > 0): ?> <? if ($element instanceof SelectGroupElement && count($element->getElements()) > 0): ?>
......
<div id="layout-sidebar"> <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'; ?>"> <div class="sidebar-image <? if ($avatar) echo 'sidebar-image-with-context'; ?>">
<? if ($avatar) : ?> <? if ($avatar) : ?>
<div class="sidebar-context"> <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