fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:34:59 +02:00
parent 365ce6c02b
commit 920be6993c
4 changed files with 19 additions and 21 deletions

View File

@ -26,14 +26,14 @@ echo $this->getData('nav')->render(); ?>
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}helper/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->getHtml('Type'); ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->getHtml('Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->getHtml('Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->getHtml('Start'); ?></label><td><label for="iTitle"><?= $this->getHtml('End'); ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iType"><?= $this->getHtml('Type'); ?></label>
<tr><td colspan="2"><select id="iType" name="type"></select>
<tr><td colspan="2"><label for="iTitle"><?= $this->getHtml('Title'); ?></label>
<tr><td colspan="2"><input id="iTitle" type="text" name="title">
<tr><td colspan="2"><label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td colspan="2"><textarea id="iDescription" name="description"></textarea>
<tr><td><label for="iStart"><?= $this->getHtml('Start'); ?></label><td><label for="iEnd"><?= $this->getHtml('End'); ?></label>
<tr><td><input id="iSTart" type="datetime-local"><td><input id="iEnd" type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->getHtml('Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
</table>

View File

@ -26,19 +26,16 @@ echo $this->getData('nav')->render(); ?>
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}marketing/promotion'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->getHtml('Type'); ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->getHtml('Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->getHtml('Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->getHtml('Start'); ?></label><td><label for="iTitle"><?= $this->getHtml('End'); ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iType"><?= $this->getHtml('Type'); ?></label>
<tr><td colspan="2"><select id="iType" name="type"></select>
<tr><td colspan="2"><label for="iTitle"><?= $this->getHtml('Title'); ?></label>
<tr><td colspan="2"><input id="iTitle" type="text" name="title">
<tr><td colspan="2"><label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td colspan="2"><textarea id="iDescription" name="description"></textarea>
<tr><td><label for="iStart"><?= $this->getHtml('Start'); ?></label><td><label for="iEnd"><?= $this->getHtml('End'); ?></label>
<tr><td><input id="iSTart" type="datetime-local"><td><input id="iEnd" type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->getHtml('Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
<tr><td colspan="2"><label for="iBudget"><?= $this->getHtml('Limit'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</table>
</form>
</div>

View File

@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="2"><textarea id="iDescription" name="desc"><?= $this->printHtml($promotion->description); ?></textarea>
<tr><td><label for="iBudget"><?= $this->getHtml('Budget'); ?></label><td><label for="iActual"><?= $this->getHtml('Actual'); ?></label>
<tr><td><input type="text" id="iBudget" name="budget" placeholder=""><td><input type="text" id="iActual" name="actual">
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>" name="save-promotion">
</table>
</form>
</div>

View File

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