Skip to content
Snippets Groups Projects
Commit 33b51b95 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

refine a11y, re #1489

Merge request studip/studip!1371
parent 0e470d8e
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<thead> <thead>
<tr> <tr>
<th> <th>
<input type="checkbox" name="all" value="1" <input type="checkbox" name="all" value="1" title="<?= _('Alle Veranstaltungen auswählen') ?>"
data-proxyfor="tbody#courses-<?= md5($sem_name) ?> td :checkbox"> data-proxyfor="tbody#courses-<?= md5($sem_name) ?> td :checkbox">
</th> </th>
<th><?= _('Veranstaltungsname') ?></th> <th><?= _('Veranstaltungsname') ?></th>
...@@ -32,14 +32,24 @@ ...@@ -32,14 +32,24 @@
<tbody id="courses-<?= md5($sem_name) ?>"> <tbody id="courses-<?= md5($sem_name) ?>">
<? foreach ($courses as $course) : ?> <? foreach ($courses as $course) : ?>
<tr> <tr>
<td><input type="checkbox" name="courses[]" value="<?= htmlReady($course->id) ?>"></td> <td>
<input type="checkbox" name="courses[]" value="<?= htmlReady($course->id) ?>"
title="<?= sprintf(_('%s auswählen'), htmlReady($course->getFullname())) ?>">
</td>
<td><?= htmlReady($course->getFullname()) ?></td> <td><?= htmlReady($course->getFullname()) ?></td>
<td class="actions"> <td class="actions">
<?= Icon::create('trash')->asInput([ <?= Icon::create('trash')->asInput([
'formaction' => $controller->delete_course_assignment($user, ['course_id' => $course->id]), 'formaction' => $controller->delete_course_assignment(
$user,
['course_id' => $course->id]
),
'data-confirm' => sprintf( 'data-confirm' => sprintf(
_('Wollen Sie %s wirklich austragen?'), _('Wollen Sie %s wirklich austragen?'),
$user->getFullName() htmlReady($user->getFullName())
),
'title' => sprintf(
_('Aus %s austragen'),
htmlReady($course->getFullname())
), ),
'data-dialog' => 'size=auto' 'data-dialog' => 'size=auto'
]) ?> ]) ?>
......
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