mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-17 02:18:40 +00:00
Fix promotion lang+routes
This commit is contained in:
parent
bce0ae6ed2
commit
8cc5234866
|
|
@ -15,6 +15,12 @@ return [
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'^.*/backend/marketing/promotion/profile.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Marketing\Controller:viewMarketingPromotionProfile',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
'^.*/backend/marketing/event/list.*$' => [
|
'^.*/backend/marketing/event/list.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Marketing\Controller:viewMarketingEventList',
|
'dest' => '\Modules\Marketing\Controller:viewMarketingEventList',
|
||||||
|
|
@ -27,4 +33,10 @@ return [
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'^.*/backend/marketing/event/profile.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Marketing\Controller:viewMarketingEventProfile',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
{
|
{
|
||||||
$view = new View($this->app, $request, $response);
|
$view = new View($this->app, $request, $response);
|
||||||
$view->setTemplate('/Modules/Marketing/Theme/Backend/promotion-profile');
|
$view->setTemplate('/Modules/Marketing/Theme/Backend/promotion-profile');
|
||||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1001701001, $request, $response));
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1001902001, $request, $response));
|
||||||
|
|
||||||
$promotion = PromotionMapper::get((int) $request->getData('id'));
|
$promotion = PromotionMapper::get((int) $request->getData('id'));
|
||||||
$view->addData('promotion', $promotion);
|
$view->addData('promotion', $promotion);
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
return ['Marketing' => [
|
return ['Marketing' => [
|
||||||
|
'Actual' => 'Actual',
|
||||||
'Budget' => 'Budget',
|
'Budget' => 'Budget',
|
||||||
'Description' => 'Description',
|
'Description' => 'Description',
|
||||||
'Expenses' => 'Expenses',
|
'Expenses' => 'Expenses',
|
||||||
|
|
@ -20,6 +21,7 @@ return ['Marketing' => [
|
||||||
'Events' => 'Events',
|
'Events' => 'Events',
|
||||||
'Limit' => 'Limit',
|
'Limit' => 'Limit',
|
||||||
'Location' => 'Location',
|
'Location' => 'Location',
|
||||||
|
'Name' => 'Name',
|
||||||
'Promotion' => 'Promotion',
|
'Promotion' => 'Promotion',
|
||||||
'Sales' => 'Sales',
|
'Sales' => 'Sales',
|
||||||
'Start' => 'Start',
|
'Start' => 'Start',
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td colspan="5"><?= $footerView->render(); ?>
|
<td colspan="5"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach($list as $key => $value) : $count++;
|
<?php $count = 0; foreach($list as $key => $value) : $count++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/projectmanagement/profile?{?}&id=' . $value->getId());?>
|
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/marketing/promotion/profile?{?}&id=' . $value->getId());?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getStart()->format('Y-m-d')); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getStart()->format('Y-m-d')); ?></a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user