mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-02-15 15:58:40 +00:00
Templating
This commit is contained in:
parent
b1fa29299a
commit
2690e95c50
|
|
@ -123,7 +123,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
public function viewSupportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
public function viewSupportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||||
{
|
{
|
||||||
$view = new View($this->app, $request, $response);
|
$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));
|
$view->addData('nav', $this->createNavigation(1002901101, $request, $response));
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
1
Theme/backend/support-settings.tpl.php
Normal file
1
Theme/backend/support-settings.tpl.php
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
41
Theme/backend/ticket-create.tpl.php
Normal file
41
Theme/backend/ticket-create.tpl.php
Normal 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>
|
||||||
|
|
@ -21,7 +21,10 @@ $MODLANG['Support'] = [
|
||||||
'Created' => 'Created',
|
'Created' => 'Created',
|
||||||
'Creator' => 'Creator',
|
'Creator' => 'Creator',
|
||||||
'Day' => 'Day',
|
'Day' => 'Day',
|
||||||
|
'Department' => 'Department',
|
||||||
|
'Description' => 'Description',
|
||||||
'Due' => 'Due',
|
'Due' => 'Due',
|
||||||
|
'Files' => 'Files',
|
||||||
'Forwarded' => 'Forwarded',
|
'Forwarded' => 'Forwarded',
|
||||||
'From' => 'From',
|
'From' => 'From',
|
||||||
'Group' => 'Group',
|
'Group' => 'Group',
|
||||||
|
|
@ -45,10 +48,12 @@ $MODLANG['Support'] = [
|
||||||
'Statistics' => 'Statistics',
|
'Statistics' => 'Statistics',
|
||||||
'Status' => 'Status',
|
'Status' => 'Status',
|
||||||
'Support' => 'Support',
|
'Support' => 'Support',
|
||||||
|
'Ticket' => 'Ticket',
|
||||||
'Tickets' => 'Tickets',
|
'Tickets' => 'Tickets',
|
||||||
'Title' => 'Title',
|
'Title' => 'Title',
|
||||||
'To' => 'To',
|
'To' => 'To',
|
||||||
'Today' => 'Today',
|
'Today' => 'Today',
|
||||||
|
'Topic' => 'Topic',
|
||||||
'Type' => 'Type',
|
'Type' => 'Type',
|
||||||
'Week' => 'Week',
|
'Week' => 'Week',
|
||||||
'Year' => 'Year',
|
'Year' => 'Year',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user