Skip to content
Snippets Groups Projects
Commit 42ffe4c7 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

added missing ARIA labels for icons on the profile page

parent 5f0d9a73
No related branches found
No related tags found
No related merge requests found
......@@ -13,19 +13,19 @@
</span>
<? if ($admin && $isProfile && $termin->getObjectClass() === 'CalendarDateAssignment') : ?>
<a href="<?= URLHelper::getLink('dispatch.php/calendar/calendar') ?>"
title="<?= _('Zum Kalender') ?>">
title="<?= _('Zum Kalender') ?>" aria-label="<?= _('Zum Kalender') ?>">
<?= Icon::create('schedule')->asImg(['class' => 'text-bottom']) ?>
</a>
<? if ($termin->calendar_date->isWritable($GLOBALS['user']->id)) : ?>
<a href="<?= URLHelper::getLink('dispatch.php/calendar/date/edit/' . $termin->getPrimaryObjectId()) ?>"
title="<?= _('Termin bearbeiten') ?>"
title="<?= _('Termin bearbeiten') ?>" aria-label="<?= _('Termin bearbeiten') ?>"
data-dialog>
<?= Icon::create('edit')->asImg(['class' => 'text-bottom']) ?>
</a>
<? endif ?>
<? elseif (!$course_range && in_array($termin->getObjectClass(), ['CourseDate', 'CourseExDate'])) : ?>
<a href="<?= URLHelper::getLink('dispatch.php/course/dates', ['cid' => $termin->getPrimaryObjectId()]) ?>"
title="<?= _('Zur Veranstaltung') ?>">
title="<?= _('Zur Veranstaltung') ?>" aria-label="<?= _('Zur Veranstaltung') ?>">
<?= Icon::create('seminar')->asImg(['class'=> 'text-bottom']) ?>
</a>
<? endif ?>
......
......@@ -10,12 +10,12 @@
<? if ($isProfile) : ?>
<a href="<?= URLHelper::getLink('dispatch.php/calendar/date/add') ?>"
data-dialog="reload-on-close"
title="<?= _('Neuen Termin anlegen') ?>">
title="<?= _('Neuen Termin anlegen') ?>" aria-label="<?= _('Neuen Termin anlegen') ?>">
<?= Icon::create('add', 'clickable')->asImg(['class' => 'text-bottom']) ?>
</a>
<? else: ?>
<a href="<?= URLHelper::getLink("dispatch.php/course/timesrooms", ['cid' => $range_id]) ?>"
title="<?= _('Neuen Termin anlegen') ?>">
title="<?= _('Neuen Termin anlegen') ?>" aria-label="<?= _('Neuen Termin anlegen') ?>">
<?= Icon::create('admin', 'clickable')->asImg(['class' => 'text-bottom']) ?>
</a>
<? endif ?>
......
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