fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:34:59 +02:00
parent eb72abfa24
commit 3de023a241
3 changed files with 4 additions and 2 deletions

View File

@ -47,4 +47,5 @@ return ['HumanResourceManagement' => [
'Unit' => 'Unit',
'Vacation' => 'Vacation',
'Work' => 'Work',
'IMG_alt_staff' => 'Staff image',
]];

View File

@ -44,7 +44,7 @@ echo $this->getData('nav')->render(); ?>
<?php $c = 0; foreach ($employees as $key => $value) : ++$c;
$url = UriFactory::build('{/prefix}humanresource/staff/profile?{?}&id=' . $value->getId()); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img width="30" loading="lazy" class="profile-image"
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_staff'); ?>" width="30" loading="lazy" class="profile-image"
src="<?=
$value->profile->image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
// Modules/tests