diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-09 09:18:53 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-09 09:18:53 +0100 |
| commit | 08da9f257ff4efc98dd058e81984ac9bd6e46639 (patch) | |
| tree | 5e397bb3771fa096b30d435a12bc6ab8687751b2 /app/views/admin/sem_classes | |
| parent | ef89c567131c55840192820ed7510497d970f36d (diff) | |
deprecate asSvg in favor of asImg, fixes #6330
Closes #6330
Merge request studip/studip!4802
Diffstat (limited to 'app/views/admin/sem_classes')
| -rw-r--r-- | app/views/admin/sem_classes/_sem_type.php | 4 | ||||
| -rw-r--r-- | app/views/admin/sem_classes/details.php | 8 | ||||
| -rw-r--r-- | app/views/admin/sem_classes/overview.php | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/app/views/admin/sem_classes/_sem_type.php b/app/views/admin/sem_classes/_sem_type.php index 9ee57d6..6b24b53 100644 --- a/app/views/admin/sem_classes/_sem_type.php +++ b/app/views/admin/sem_classes/_sem_type.php @@ -28,11 +28,11 @@ $id = $sem_type['id']; </span> (<?= sprintf(_("%s Veranstaltungen"), $number_of_seminars ?: _("keine")) ?>) <a href="#" class="sem_type_edit" onClick="jQuery(this).closest('li').find('.name_container').children().toggle().find('input').focus(); return false;" title="<?= _('Veranstaltungstyp umbenennen') ?>"> - <?= Icon::create('edit')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('edit')->asImg(['class' => 'text-bottom']) ?> </a> <? if ($number_of_seminars == 0) : ?> <a href="#" class="sem_type_delete" onClick="return false;" title="<?= _("Veranstaltungstyp löschen") ?>"> - <?= Icon::create('trash')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('trash')->asImg(['class' => 'text-bottom']) ?> </a> <? endif ?> </li> diff --git a/app/views/admin/sem_classes/details.php b/app/views/admin/sem_classes/details.php index 8080920..d7e21d7 100644 --- a/app/views/admin/sem_classes/details.php +++ b/app/views/admin/sem_classes/details.php @@ -26,7 +26,7 @@ <div> <span class="name"><?= htmlReady($sem_class['name']) ?></span> <a href="#" class="sem_class_edit" onClick="jQuery(this).closest('label').children().toggle().find('input:visible').focus(); return false;"> - <?= Icon::create('edit')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('edit')->asImg(['class' => 'text-bottom']) ?> </a> </div> @@ -42,7 +42,7 @@ <div> <span class="description"><?= htmlReady($sem_class['description']) ?></span> <a href="#" class="sem_class_edit" onClick="jQuery(this).closest('label').children().toggle().find('input:visible').focus(); return false;"> - <?= Icon::create('edit')->asSvg(['class' => 'text-bottom']) ?></a> + <?= Icon::create('edit')->asImg(['class' => 'text-bottom']) ?></a> </div> <div class="description_input" style="display: none;"> <input id="sem_class_description" type="text" value="<?= htmlReady($sem_class['description']) ?>" onBlur="jQuery(this).closest('label.sem_class_name').children().toggle().find('.description').text(this.value);" style="width: 80%;"> @@ -60,11 +60,11 @@ <div class="add"> <div style="display: none; margin-left: 37px;"> <input type="text" id="new_sem_type" onBlur="if (!this.value) jQuery(this).closest('.add').children().toggle();"> - <a href="" onClick="STUDIP.admin_sem_class.add_sem_type(); return false;"><?= Icon::create('arr_2up', 'sort')->asSvg(['class' => 'text-bottom', 'title' => _('hinzufügen')]) ?></a> + <a href="" onClick="STUDIP.admin_sem_class.add_sem_type(); return false;"><?= Icon::create('arr_2up', 'sort')->asImg(['class' => 'text-bottom', 'title' => _('hinzufügen')]) ?></a> </div> <div style="margin-left: 21px;"> <a href="#" onClick="jQuery(this).closest('.add').children().toggle(); jQuery('#new_sem_type').focus(); return false;"> - <?= Icon::create('add')->asSvg([ + <?= Icon::create('add')->asImg([ 'class' => 'text-bottom', 'title' => _('Veranstaltungstyp hinzufügen'), ]) ?> diff --git a/app/views/admin/sem_classes/overview.php b/app/views/admin/sem_classes/overview.php index 5cae59c..0a93f09 100644 --- a/app/views/admin/sem_classes/overview.php +++ b/app/views/admin/sem_classes/overview.php @@ -32,7 +32,7 @@ <td><?= date("j.n.Y H:i", $sem_class['chdate']) ?> <?= _("Uhr") ?></td> <td class="actions"> <a href="<?= URLHelper::getLink('dispatch.php/admin/sem_classes/details', ['id' => $id]) ?>" title="<?= _('Editieren dieser Veranstaltungskategorie') ?>"> - <?= Icon::create('edit')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('edit')->asImg(['class' => 'text-bottom']) ?> </a> </td> </tr> |
