mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-09 23:18:40 +00:00
Templating
This commit is contained in:
parent
c85f6582c2
commit
885a3f06d9
|
|
@ -85,7 +85,7 @@
|
|||
"order": 1,
|
||||
"from": 1001900000,
|
||||
"permission": null,
|
||||
"parent": 1001902001,
|
||||
"parent": 1001903001,
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
"order": 1,
|
||||
"from": 1001900000,
|
||||
"permission": null,
|
||||
"parent": 1001902001,
|
||||
"parent": 1001903001,
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
{
|
||||
$view = new View($this->app, $request, $response);
|
||||
$view->setTemplate('/Modules/Marketing/Theme/backend/promotion-create');
|
||||
$view->addData('nav', $this->createNavigation(1000706001, $request, $response));
|
||||
$view->addData('nav', $this->createNavigation(1001902001, $request, $response));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
@ -141,7 +141,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
{
|
||||
$view = new View($this->app, $request, $response);
|
||||
$view->setTemplate('/Modules/Marketing/Theme/backend/event-list');
|
||||
$view->addData('nav', $this->createNavigation(1000706001, $request, $response));
|
||||
$view->addData('nav', $this->createNavigation(1001903001, $request, $response));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
@ -160,7 +160,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
{
|
||||
$view = new View($this->app, $request, $response);
|
||||
$view->setTemplate('/Modules/Marketing/Theme/backend/event-create');
|
||||
$view->addData('nav', $this->createNavigation(1000706001, $request, $response));
|
||||
$view->addData('nav', $this->createNavigation(1001903001, $request, $response));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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['Marketing']['Event'] ?></h1>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->lang['Marketing']['Type'] ?></label>
|
||||
<tr><td colspan="2"><select></select>
|
||||
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->lang['Marketing']['Title']; ?></label>
|
||||
<tr><td colspan="2"><input type="text">
|
||||
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->lang['Marketing']['Description']; ?></label>
|
||||
<tr><td colspan="2"><textarea></textarea>
|
||||
<tr><td><label for="iTitle"><?= $this->l11n->lang['Marketing']['Start'] ?></label><td><label for="iTitle"><?= $this->l11n->lang['Marketing']['End'] ?></label>
|
||||
<tr><td><input type="datetime-local"><td><input type="datetime-local">
|
||||
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->lang['Marketing']['Budget']; ?></label>
|
||||
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<?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['Marketing']['Promotion'] ?></h1>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->lang['Marketing']['Type'] ?></label>
|
||||
<tr><td colspan="2"><select></select>
|
||||
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->lang['Marketing']['Title']; ?></label>
|
||||
<tr><td colspan="2"><input type="text">
|
||||
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->lang['Marketing']['Description']; ?></label>
|
||||
<tr><td colspan="2"><textarea></textarea>
|
||||
<tr><td><label for="iTitle"><?= $this->l11n->lang['Marketing']['Start'] ?></label><td><label for="iTitle"><?= $this->l11n->lang['Marketing']['End'] ?></label>
|
||||
<tr><td><input type="datetime-local"><td><input type="datetime-local">
|
||||
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->lang['Marketing']['Budget']; ?></label>
|
||||
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
|
||||
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->lang['Marketing']['Limit']; ?></label>
|
||||
<tr><td colspan="2"><input type="text">
|
||||
<tr><td colspan="2"><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -14,14 +14,17 @@
|
|||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Marketing'] = [
|
||||
'Budget' => 'Budget',
|
||||
'Expenses' => 'Expenses',
|
||||
'End' => 'End',
|
||||
'Events' => 'Events',
|
||||
'Location' => 'Location',
|
||||
'Sales' => 'Sales',
|
||||
'Start' => 'Start',
|
||||
'Status' => 'Status',
|
||||
'Title' => 'Title',
|
||||
'Type' => 'Type',
|
||||
'Budget' => 'Budget',
|
||||
'Description' => 'Description',
|
||||
'Expenses' => 'Expenses',
|
||||
'End' => 'End',
|
||||
'Events' => 'Events',
|
||||
'Limit' => 'Limit',
|
||||
'Location' => 'Location',
|
||||
'Promotion' => 'Promotion',
|
||||
'Sales' => 'Sales',
|
||||
'Start' => 'Start',
|
||||
'Status' => 'Status',
|
||||
'Title' => 'Title',
|
||||
'Type' => 'Type',
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user