minor tpl and bug fixes

This commit is contained in:
Dennis Eichhorn 2020-06-13 21:26:08 +02:00
parent 2889185c4f
commit 5411585157
3 changed files with 73 additions and 35 deletions

View File

@ -67,7 +67,6 @@ class Controller extends ModuleAbstract implements WebInterface
* @since 1.0.0
*/
protected static array $providing = [
'Navigation',
];
/**

39
Models/NullTicket.php Normal file
View File

@ -0,0 +1,39 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Support\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\Support\Models;
/**
* Null model
*
* @package Modules\Support\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class NullTicket extends Ticket
{
/**
* Constructor
*
* @param int $id Model id
*
* @since 1.0.0
*/
public function __construct(int $id = 0)
{
$this->id = $id;
parent::__construct();
}
}

View File

@ -21,9 +21,9 @@ echo $this->getData('nav')->render(); ?>
<div class="row">
<div class="col-xs-12 col-md-9">
<div class="box wf-100">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Tickets') ?><i class="fa fa-download floatRight download btn"></i></div>
<table class="default">
<caption><?= $this->getHtml('Tickets') ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<td><?= $this->getHtml('Status') ?>
<td><?= $this->getHtml('Due') ?>
@ -47,43 +47,43 @@ echo $this->getData('nav')->render(); ?>
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->getTask()->getCreatedBy()->getName1()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->getTask()->getCreatedAt()->format('Y-m-d H:i')); ?></a>
<?php endforeach; if ($c == 0) : ?>
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</section>
</div>
<div class="col-xs-12 col-md-3">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Settings') ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tr><td><label for="iIntervarl"><?= $this->getHtml('Interval') ?></label>
<tr><td><select id="iIntervarl" name="interval">
<option><?= $this->getHtml('All') ?>
<option><?= $this->getHtml('Day') ?>
<option><?= $this->getHtml('Week') ?>
<option selected><?= $this->getHtml('Month') ?>
<option><?= $this->getHtml('Year') ?>
</select>
</table>
</form>
</div>
</section>
<section class="box wf-100">
<header><h1><?= $this->getHtml('Settings') ?></h1></header>
<div class="inner">
<table class="list">
<tr><th><?= $this->getHtml('Received') ?><td>0
<tr><th><?= $this->getHtml('Created') ?><td>0
<tr><th><?= $this->getHtml('Forwarded') ?><td>0
<tr><th><?= $this->getHtml('AverageAmount') ?><td>0
<tr><th><?= $this->getHtml('AverageProcessTime') ?><td>0
<tr><th><?= $this->getHtml('InTime') ?><td>0
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Settings') ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tr><td><label for="iIntervarl"><?= $this->getHtml('Interval') ?></label>
<tr><td><select id="iIntervarl" name="interval">
<option><?= $this->getHtml('All') ?>
<option><?= $this->getHtml('Day') ?>
<option><?= $this->getHtml('Week') ?>
<option selected><?= $this->getHtml('Month') ?>
<option><?= $this->getHtml('Year') ?>
</select>
</table>
</div>
</section>
</form>
</div>
</section>
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Settings') ?></div>
<div class="portlet-body">
<table class="list">
<tr><th><?= $this->getHtml('Received') ?><td>0
<tr><th><?= $this->getHtml('Created') ?><td>0
<tr><th><?= $this->getHtml('Forwarded') ?><td>0
<tr><th><?= $this->getHtml('AverageAmount') ?><td>0
<tr><th><?= $this->getHtml('AverageProcessTime') ?><td>0
<tr><th><?= $this->getHtml('InTime') ?><td>0
</table>
</div>
</section>
</div>
</div>