This commit is contained in:
Dennis Eichhorn 2024-03-10 02:24:57 +00:00
parent 0bc085da11
commit c58c926de4
3 changed files with 37 additions and 22 deletions

View File

@ -29,7 +29,6 @@ use Modules\Tasks\Models\TaskType;
use phpOMS\Message\Http\RequestStatusCode; use phpOMS\Message\Http\RequestStatusCode;
use phpOMS\Message\RequestAbstract; use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract; use phpOMS\Message\ResponseAbstract;
use Modules\Admin\Models\SettingsEnum as AdminSettingsEnum;
use Modules\Messages\Models\EmailMapper; use Modules\Messages\Models\EmailMapper;
use Modules\Support\Models\SettingsEnum; use Modules\Support\Models\SettingsEnum;

View File

@ -99,7 +99,10 @@ echo $this->data['nav']->render(); ?>
<?php endif; ?> <?php endif; ?>
<?php foreach ($task->tags as $tag) : ?> <?php foreach ($task->tags as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= empty($tag->icon) ? '' : ''; ?><?= $this->printHtml($tag->getL11n()); ?></span> <span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
<?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?>
<?= $this->printHtml($tag->getL11n()); ?>
</span>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
</div> </div>

View File

@ -19,26 +19,39 @@ echo $this->data['nav']->render(); ?>
<div class="row"> <div class="row">
<div class="col-xs-6"> <div class="col-xs-6">
<section class="box wf-100"> <section class="portlet">
<header><h1><?= $this->getHtml('Ticket'); ?></h1></header> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}helper/template'); ?>" method="post">
<div class="inner"> <div class="portlet-head"><?= $this->getHtml('Ticket'); ?></div>
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}helper/template'); ?>" method="post"> <div class="portlet-body">
<table class="layout wf-100"> <div class="form-group">
<tbody> <label for="iDepartment"><?= $this->getHtml('Department'); ?></label>
<tr><td><label for="iDepartment"><?= $this->getHtml('Department'); ?></label> <select id="iDepartment" name="department"></select>
<tr><td><select id="iDepartment" name="department"></select> </div>
<tr><td><label for="iTopic"><?= $this->getHtml('Topic'); ?></label>
<tr><td><select id="iTopic" name="topic"></select> <div class="form-group">
<tr><td><label for="iTitle"><?= $this->getHtml('Title'); ?></label> <label for="iTopic"><?= $this->getHtml('Topic'); ?></label>
<tr><td><input id="iDescription" name="name" type="text" required> <select id="iTopic" name="topic"></select>
<tr><td><label for="iDescription"><?= $this->getHtml('Description'); ?></label> </div>
<tr><td><textarea required></textarea>
<tr><td><label for="iFile"><?= $this->getHtml('Files'); ?></label> <div class="form-group">
<tr><td><input id="iFile" name="fileVisual" type="file" multiple><input id="iFileHidden" name="files" type="hidden"> <label for="iTitle"><?= $this->getHtml('Title'); ?></label>
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="create-ticket"> <input id="iTitle" name="name" type="text" required>
</table> </div>
</form>
</div> <div class="form-group">
<label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<textarea required></textarea>
</div>
<div class="form-group">
<label for="iFile"><?= $this->getHtml('Files'); ?></label>
<input id="iFile" name="fileVisual" type="file" multiple><input id="iFileHidden" name="files" type="hidden">
</div>
</div>
<div class="portlet-foot">
<input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="create-ticket">
</div>
</form>
</section> </section>
</div> </div>
</div> </div>