phpcs autofixes

This commit is contained in:
Dennis Eichhorn 2023-05-28 12:19:04 +00:00
parent 9d8c8e1d1c
commit 689af3a36e
3 changed files with 29 additions and 29 deletions

View File

@ -8,23 +8,23 @@ use phpOMS\Router\RouteVerb;
return [
'^.*/rnd/list.*$' => [
[
'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectList',
'verb' => RouteVerb::GET,
'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::PROJECT,
'type' => PermissionType::READ,
'state' => PermissionState::PROJECT,
],
],
],
'^.*/rnd/create.*$' => [
[
'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectCreate',
'verb' => RouteVerb::GET,
'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::PROJECT,
'type' => PermissionType::CREATE,
'state' => PermissionState::PROJECT,
],
],
],

View File

@ -15,32 +15,32 @@ declare(strict_types=1);
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<header><h1><?= $this->getHtml('Project') ?></h1></header>
<header><h1><?= $this->getHtml('Project'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tr><td colspan="3"><label for="iName"><?= $this->getHtml('Name') ?></label>
<tr><td colspan="3"><label for="iName"><?= $this->getHtml('Name'); ?></label>
<tr><td colspan="2"><input type="text" id="iName" name="name" placeholder=""><td>
<tr><td colspan="3"><label for="iDescription"><?= $this->getHtml('Description') ?></label>
<tr><td colspan="3"><label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td colspan="2"><textarea id="iDescription" name="description"></textarea><td>
<tr><td colspan="3"><label for="iStatus"><?= $this->getHtml('Status') ?></label>
<tr><td colspan="3"><label for="iStatus"><?= $this->getHtml('Status'); ?></label>
<tr><td colspan="2"><select id="iStatus" name="status">
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::ACTIVE); ?>"><?= $this->getHtml('Active') ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::INACTIVE); ?>"><?= $this->getHtml('Inactive') ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::FINISHED); ?>"><?= $this->getHtml('Finished') ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::CANCELED); ?>"><?= $this->getHtml('Canceled') ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::HOLD); ?>"><?= $this->getHtml('Hold') ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::ACTIVE); ?>"><?= $this->getHtml('Active'); ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::INACTIVE); ?>"><?= $this->getHtml('Inactive'); ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::FINISHED); ?>"><?= $this->getHtml('Finished'); ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::CANCELED); ?>"><?= $this->getHtml('Canceled'); ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectStatus::HOLD); ?>"><?= $this->getHtml('Hold'); ?>
</select><td>
<tr><td colspan="3"><label for="iFiles"><?= $this->getHtml('Files') ?></label>
<tr><td colspan="3"><label for="iFiles"><?= $this->getHtml('Files'); ?></label>
<tr><td colspan="2"><input type="file" id="iFiles" name="file" multiple><td>
<tr><td colspan="3"><label for="iBudget"><?= $this->getHtml('Budget') ?></label>
<tr><td colspan="3"><label for="iBudget"><?= $this->getHtml('Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder=""><td>
<tr><td><label for="iDue"><?= $this->getHtml('Start') ?></label><td><label for="iDue"><?= $this->getHtml('Due') ?></label><td>
<tr><td><label for="iDue"><?= $this->getHtml('Start'); ?></label><td><label for="iDue"><?= $this->getHtml('Due'); ?></label><td>
<tr><td><input type="datetime-local" id="iDue" name="due"><td><input type="datetime-local" id="iDue" name="due"><td>
<tr><td><label for="iResponsibility"><?= $this->getHtml('Responsibility') ?></label><td><label for="iUser"><?= $this->getHtml('UserGroup') ?></label><td>
<tr><td><label for="iResponsibility"><?= $this->getHtml('Responsibility'); ?></label><td><label for="iUser"><?= $this->getHtml('UserGroup'); ?></label><td>
<tr><td><select id="iStatus" name="status">
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectResponsibility::MANAGER); ?>"><?= $this->getHtml('Manager') ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectResponsibility::OTHER); ?>"><?= $this->getHtml('Other') ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectResponsibility::MANAGER); ?>"><?= $this->getHtml('Manager'); ?>
<option value="<?= $this->printHtml(\Modules\ProjectManagement\Models\ProjectResponsibility::OTHER); ?>"><?= $this->getHtml('Other'); ?>
</select>
<td><input type="text" id="iUser" name="user" placeholder=""><td><button><?= $this->getHtml('Add', '0', '0'); ?></button>
<tr><td colspan="3"><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">

View File

@ -29,19 +29,19 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<div class="box wf-100">
<table class="default">
<caption><?= $this->getHtml('Projects') ?><i class="fa fa-download floatRight download btn"></i></caption>
<caption><?= $this->getHtml('Projects'); ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>
<td><?= $this->getHtml('Status') ?>
<td class="wf-100"><?= $this->getHtml('Name') ?>
<td><?= $this->getHtml('Creator') ?>
<td><?= $this->getHtml('Created') ?>
<td><?= $this->getHtml('Status'); ?>
<td class="wf-100"><?= $this->getHtml('Name'); ?>
<td><?= $this->getHtml('Creator'); ?>
<td><?= $this->getHtml('Created'); ?>
<tfoot>
<tr><td colspan="5">
<tbody>
<?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}checklist/single?{?}&id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('{/prefix}checklist/single?{?}&id=' . $value->getId()); ?>
<tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>