mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-06 21:58:40 +00:00
Fix promotion lang+routes
This commit is contained in:
parent
bce0ae6ed2
commit
8cc5234866
|
|
@ -15,6 +15,12 @@ return [
|
|||
'verb' => RouteVerb::GET,
|
||||
],
|
||||
],
|
||||
'^.*/backend/marketing/promotion/profile.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Marketing\Controller:viewMarketingPromotionProfile',
|
||||
'verb' => RouteVerb::GET,
|
||||
],
|
||||
],
|
||||
'^.*/backend/marketing/event/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Marketing\Controller:viewMarketingEventList',
|
||||
|
|
@ -27,4 +33,10 @@ return [
|
|||
'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->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'));
|
||||
$view->addData('promotion', $promotion);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
* @link http://orange-management.com
|
||||
*/
|
||||
return ['Marketing' => [
|
||||
'Actual' => 'Actual',
|
||||
'Budget' => 'Budget',
|
||||
'Description' => 'Description',
|
||||
'Expenses' => 'Expenses',
|
||||
|
|
@ -20,6 +21,7 @@ return ['Marketing' => [
|
|||
'Events' => 'Events',
|
||||
'Limit' => 'Limit',
|
||||
'Location' => 'Location',
|
||||
'Name' => 'Name',
|
||||
'Promotion' => 'Promotion',
|
||||
'Sales' => 'Sales',
|
||||
'Start' => 'Start',
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?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; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getStart()->format('Y-m-d')); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user