Templating

This commit is contained in:
Dennis Eichhorn 2015-12-19 19:35:25 +01:00
parent b1fa29299a
commit 2690e95c50
4 changed files with 48 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Controller extends ModuleAbstract implements WebInterface
public function viewSupportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{
$view = new View($this->app, $request, $response);
$view->setTemplate('/Modules/Support/Theme/backend/support-create');
$view->setTemplate('/Modules/Support/Theme/backend/ticket-create');
$view->addData('nav', $this->createNavigation(1002901101, $request, $response));
return $view;

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,41 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
/**
* @var \phpOMS\Views\View $this
*/
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<h1><?= $this->l11n->lang['Support']['Ticket'] ?></h1>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iTitle"><?= $this->l11n->lang['Support']['Department'] ?></label>
<tr><td><select></select>
<tr><td><label for="iTitle"><?= $this->l11n->lang['Support']['Topic'] ?></label>
<tr><td><select></select>
<tr><td><label for="iTitle"><?= $this->l11n->lang['Support']['Title'] ?></label>
<tr><td><input id="iTitle" name="name" type="text" required>
<tr><td><label for="iTitle"><?= $this->l11n->lang['Support']['Description'] ?></label>
<tr><td><textarea required></textarea>
<tr><td><label for="iFile"><?= $this->l11n->lang['Support']['Files'] ?></label>
<tr><td><input id="iFile" name="fileVisual" type="file" multiple><input id="iFileHidden" name="files" type="hidden">
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
</table>
</form>
</div>
</section>

View File

@ -21,7 +21,10 @@ $MODLANG['Support'] = [
'Created' => 'Created',
'Creator' => 'Creator',
'Day' => 'Day',
'Department' => 'Department',
'Description' => 'Description',
'Due' => 'Due',
'Files' => 'Files',
'Forwarded' => 'Forwarded',
'From' => 'From',
'Group' => 'Group',
@ -45,10 +48,12 @@ $MODLANG['Support'] = [
'Statistics' => 'Statistics',
'Status' => 'Status',
'Support' => 'Support',
'Ticket' => 'Ticket',
'Tickets' => 'Tickets',
'Title' => 'Title',
'To' => 'To',
'Today' => 'Today',
'Topic' => 'Topic',
'Type' => 'Type',
'Week' => 'Week',
'Year' => 'Year',