autofixes

This commit is contained in:
Dennis Eichhorn 2020-08-30 20:13:11 +02:00
parent 5678d240b2
commit fd692a15b0
4 changed files with 46 additions and 44 deletions

View File

@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum;
abstract class PermissionState extends Enum abstract class PermissionState extends Enum
{ {
public const SUPPLIER = 1; public const SUPPLIER = 1;
public const ANALYSIS = 2; public const ANALYSIS = 2;
} }

View File

@ -30,7 +30,7 @@ echo $this->getData('nav')->render(); ?>
</ul> </ul>
</div> </div>
<div class="tab-content"> <div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-1' ? ' checked' : '' ?>> <input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-1' ? ' checked' : ''; ?>>
<div class="tab"> <div class="tab">
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Supplier'); ?></h1></header> <header><h1><?= $this->getHtml('Supplier'); ?></h1></header>
@ -39,11 +39,11 @@ echo $this->getData('nav')->render(); ?>
<table class="layout wf-100"> <table class="layout wf-100">
<tr><td><label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label> <tr><td><label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="number" id="iId" min="1" name="id" required></span> <tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="number" id="iId" min="1" name="id" required></span>
<tr><td><label for="iName1"><?= $this->getHtml('Name1') ?></label> <tr><td><label for="iName1"><?= $this->getHtml('Name1'); ?></label>
<tr><td><input type="text" id="iName1" name="name1" placeholder="&#xf040;" required> <tr><td><input type="text" id="iName1" name="name1" placeholder="&#xf040;" required>
<tr><td><label for="iName2"><?= $this->getHtml('Name2') ?></label> <tr><td><label for="iName2"><?= $this->getHtml('Name2'); ?></label>
<tr><td><input type="text" id="iName2" name="name2" placeholder="&#xf040;"> <tr><td><input type="text" id="iName2" name="name2" placeholder="&#xf040;">
<tr><td><label for="iName3"><?= $this->getHtml('Name3') ?></label> <tr><td><label for="iName3"><?= $this->getHtml('Name3'); ?></label>
<tr><td><input type="text" id="iName3" name="name3" placeholder="&#xf040;"> <tr><td><input type="text" id="iName3" name="name3" placeholder="&#xf040;">
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>"> <tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</table> </table>
@ -51,30 +51,30 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
</section> </section>
</div> </div>
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-2' ? ' checked' : '' ?>> <input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-2' ? ' checked' : ''; ?>>
<div class="tab"> <div class="tab">
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Contact'); ?></h1></header> <header><h1><?= $this->getHtml('Contact'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tr><td><label for="iCType"><?= $this->getHtml('Type') ?></label> <tr><td><label for="iCType"><?= $this->getHtml('Type'); ?></label>
<tr><td><select id="iCType" name="actype"> <tr><td><select id="iCType" name="actype">
<option><?= $this->getHtml('Email') ?> <option><?= $this->getHtml('Email'); ?>
<option><?= $this->getHtml('Fax') ?> <option><?= $this->getHtml('Fax'); ?>
<option><?= $this->getHtml('Phone') ?> <option><?= $this->getHtml('Phone'); ?>
</select> </select>
<tr><td><label for="iCStype"><?= $this->getHtml('Subtype') ?></label> <tr><td><label for="iCStype"><?= $this->getHtml('Subtype'); ?></label>
<tr><td><select id="iCStype" name="acstype"> <tr><td><select id="iCStype" name="acstype">
<option><?= $this->getHtml('Office') ?> <option><?= $this->getHtml('Office'); ?>
<option><?= $this->getHtml('Sales') ?> <option><?= $this->getHtml('Sales'); ?>
<option><?= $this->getHtml('Purchase') ?> <option><?= $this->getHtml('Purchase'); ?>
<option><?= $this->getHtml('Accounting') ?> <option><?= $this->getHtml('Accounting'); ?>
<option><?= $this->getHtml('Support') ?> <option><?= $this->getHtml('Support'); ?>
</select> </select>
<tr><td><label for="iCInfo"><?= $this->getHtml('Info') ?></label> <tr><td><label for="iCInfo"><?= $this->getHtml('Info'); ?></label>
<tr><td><input type="text" id="iCInfo" name="cinfo"> <tr><td><input type="text" id="iCInfo" name="cinfo">
<tr><td><label for="iCData"><?= $this->getHtml('Contact') ?></label> <tr><td><label for="iCData"><?= $this->getHtml('Contact'); ?></label>
<tr><td><input type="text" id="iCData" name="cdata"> <tr><td><input type="text" id="iCData" name="cdata">
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>"> <tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
</table> </table>
@ -82,35 +82,35 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
</section> </section>
</div> </div>
<input type="radio" id="c-tab-3" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-3' ? ' checked' : '' ?>> <input type="radio" id="c-tab-3" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-3' ? ' checked' : ''; ?>>
<div class="tab"> <div class="tab">
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Address'); ?></h1></header> <header><h1><?= $this->getHtml('Address'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tr><td><label for="iAType"><?= $this->getHtml('Type') ?></label> <tr><td><label for="iAType"><?= $this->getHtml('Type'); ?></label>
<tr><td><select id="iAType" name="atype"> <tr><td><select id="iAType" name="atype">
<option><?= $this->getHtml('Default') ?> <option><?= $this->getHtml('Default'); ?>
<option><?= $this->getHtml('Delivery') ?> <option><?= $this->getHtml('Delivery'); ?>
<option><?= $this->getHtml('Invoice') ?> <option><?= $this->getHtml('Invoice'); ?>
</select> </select>
<tr><td><label for="iAddress"><?= $this->getHtml('Address') ?></label> <tr><td><label for="iAddress"><?= $this->getHtml('Address'); ?></label>
<tr><td><input type="text" id="iAddress" name="address"> <tr><td><input type="text" id="iAddress" name="address">
<tr><td><label for="iZip"><?= $this->getHtml('Zip') ?></label> <tr><td><label for="iZip"><?= $this->getHtml('Zip'); ?></label>
<tr><td><input type="text" id="iZip" name="zip"> <tr><td><input type="text" id="iZip" name="zip">
<tr><td><label for="iCountry"><?= $this->getHtml('Country') ?></label> <tr><td><label for="iCountry"><?= $this->getHtml('Country'); ?></label>
<tr><td><input type="text" id="iCountry" name="country"> <tr><td><input type="text" id="iCountry" name="country">
<tr><td><label for="iAInfo"><?= $this->getHtml('Info') ?></label> <tr><td><label for="iAInfo"><?= $this->getHtml('Info'); ?></label>
<tr><td><input type="text" id="iAInfo" name="ainfo"> <tr><td><input type="text" id="iAInfo" name="ainfo">
<tr><td><span class="check"><input type="checkbox" id="iDefault" name="default" checked><label for="iDefault"><?= $this->getHtml('IsDefault') ?></label></span> <tr><td><span class="check"><input type="checkbox" id="iDefault" name="default" checked><label for="iDefault"><?= $this->getHtml('IsDefault'); ?></label></span>
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>"> <tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
</table> </table>
</form> </form>
</div> </div>
</section> </section>
</div> </div>
<input type="radio" id="c-tab-4" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-4' ? ' checked' : '' ?>> <input type="radio" id="c-tab-4" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-4' ? ' checked' : ''; ?>>
<div class="tab"> <div class="tab">
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('PaymentTerm'); ?></h1></header> <header><h1><?= $this->getHtml('PaymentTerm'); ?></h1></header>
@ -138,17 +138,17 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
</section> </section>
</div> </div>
<input type="radio" id="c-tab-5" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-5' ? ' checked' : '' ?>> <input type="radio" id="c-tab-5" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-5' ? ' checked' : ''; ?>>
<div class="tab"> <div class="tab">
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Payment'); ?></h1></header> <header><h1><?= $this->getHtml('Payment'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tr><td><label for="iACType"><?= $this->getHtml('Type') ?></label> <tr><td><label for="iACType"><?= $this->getHtml('Type'); ?></label>
<tr><td><select id="iACType" name="actype"> <tr><td><select id="iACType" name="actype">
<option><?= $this->getHtml('Wire') ?> <option><?= $this->getHtml('Wire'); ?>
<option><?= $this->getHtml('Creditcard') ?> <option><?= $this->getHtml('Creditcard'); ?>
</select> </select>
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>"> <tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
</table> </table>
@ -156,10 +156,10 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
</section> </section>
</div> </div>
<input type="radio" id="c-tab-6" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-6' ? ' checked' : '' ?>> <input type="radio" id="c-tab-6" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-6' ? ' checked' : ''; ?>>
<div class="tab"> <div class="tab">
</div> </div>
<input type="radio" id="c-tab-7" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-7' ? ' checked' : '' ?>> <input type="radio" id="c-tab-7" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-7' ? ' checked' : ''; ?>>
<div class="tab"> <div class="tab">
<?php <?php
$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response); $footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response);
@ -174,9 +174,9 @@ echo $this->getData('nav')->render(); ?>
<tr> <tr>
<td>IP <td>IP
<td><?= $this->getHtml('ID', '0', '0'); ?> <td><?= $this->getHtml('ID', '0', '0'); ?>
<td><?= $this->getHtml('Name') ?> <td><?= $this->getHtml('Name'); ?>
<td class="wf-100"><?= $this->getHtml('Log') ?> <td class="wf-100"><?= $this->getHtml('Log'); ?>
<td><?= $this->getHtml('Date') ?> <td><?= $this->getHtml('Date'); ?>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="6"> <td colspan="6">

View File

@ -23,13 +23,13 @@ echo $this->getData('nav')->render(); ?>
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('ID', '0', '0'); ?> <td><?= $this->getHtml('ID', '0', '0'); ?>
<td><?= $this->getHtml('Name1') ?> <td><?= $this->getHtml('Name1'); ?>
<td><?= $this->getHtml('Name2') ?> <td><?= $this->getHtml('Name2'); ?>
<td class="wf-100"><?= $this->getHtml('Name3') ?> <td class="wf-100"><?= $this->getHtml('Name3'); ?>
<td><?= $this->getHtml('City') ?> <td><?= $this->getHtml('City'); ?>
<td><?= $this->getHtml('Zip') ?> <td><?= $this->getHtml('Zip'); ?>
<td><?= $this->getHtml('Address') ?> <td><?= $this->getHtml('Address'); ?>
<td><?= $this->getHtml('Country') ?> <td><?= $this->getHtml('Country'); ?>
<tbody> <tbody>
<?php $count = 0; foreach ([] as $key => $value) : ++$count; ?> <?php $count = 0; foreach ([] as $key => $value) : ++$count; ?>
<?php endforeach; ?> <?php endforeach; ?>

View File

@ -20,6 +20,7 @@ namespace Modules\SupplierManagement\tests\Admin;
class AdminTest extends \PHPUnit\Framework\TestCase class AdminTest extends \PHPUnit\Framework\TestCase
{ {
protected const MODULE_NAME = 'SupplierManagement'; protected const MODULE_NAME = 'SupplierManagement';
protected const URI_LOAD = ''; protected const URI_LOAD = '';
use \Modules\tests\ModuleTestTrait; use \Modules\tests\ModuleTestTrait;