fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:34:59 +02:00
parent 375980badc
commit 48ee2ba421
6 changed files with 10 additions and 9 deletions

View File

@ -59,7 +59,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td><input id="iArticlegroup" name="articlegroup" type="text" placeholder="" required>
<tr><td><label for="iSSuccessor"><?= $this->getHtml('Successor'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iSource" name="source" type="text" placeholder=""></span>
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="create-item">
</table>
</form>
</div>
@ -366,7 +366,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td><input id="iPName" name="pname" type="text" placeholder="">
<tr><td><label for="iPName"><?= $this->getHtml('Leadtime'); ?></label>
<tr><td><input id="iPName" name="pname" type="number" min="0" step="1" placeholder="">
<tr><td><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<tr><td><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>" name="save-item">
</table>
</form>
</div>

View File

@ -131,7 +131,7 @@ echo $this->getData('nav')->render(); ?>
$image = $value->getFileByType('backend_image');
?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img width="30" loading="lazy" class="item-image"
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image"
src="<?= $image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('{/prefix}' . $image->getPath()); ?>"></a>

View File

@ -133,7 +133,7 @@ echo $this->getData('nav')->render(); ?>
$image = $value->getFileByType(0);
?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img width="30" loading="lazy" class="item-image"
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image"
src="<?= $image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('{/prefix}' . $image->getPath()); ?>"></a>

View File

@ -82,7 +82,7 @@ echo $this->getData('nav')->render();
</table>
</div>
<div class="portlet-foot">
<input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>"> <input type="submit" value="<?= $this->getHtml('Delete', '0', '0'); ?>">
<input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>" name="save-item"> <input type="submit" value="<?= $this->getHtml('Delete', '0', '0'); ?>" name="delete-item">
</div>
</form>
</section>
@ -91,7 +91,7 @@ echo $this->getData('nav')->render();
if (!($image instanceof NullMedia)) : ?>
<section class="portlet">
<div class="portlet-body">
<img width="100%" loading="lazy" class="item-image"
<img alt="<?= $this->printHtml($image->name); ?>" width="100%" loading="lazy" class="item-image"
src="<?= UriFactory::build('{/prefix}' . $image->getPath()); ?>">
</div>
</section>
@ -678,7 +678,7 @@ echo $this->getData('nav')->render();
<tr>
<td><input id="iPName" name="pname" type="number" min="0" step="1" placeholder="">
<tr>
<td><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<td><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>" name="save-item">
</table>
</form>
</div>

View File

@ -56,7 +56,7 @@ echo $this->getData('nav')->render(); ?>
$image = $value->getFileByType('backend_image');
?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img width="30" loading="lazy" class="item-image"
<td><a href="<?= $url; ?>"><img alt="<?= $this->printHtml($image->name); ?>" width="30" loading="lazy" class="item-image"
src="<?= $image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('{/prefix}' . $image->getPath()); ?>"></a>

View File

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