diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index de21568..550d910 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -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, + ], + ], ]; diff --git a/Controller.php b/Controller.php index 3d0cdfa..a0d4c36 100644 --- a/Controller.php +++ b/Controller.php @@ -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); diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 2a775ca..4bcdd5c 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -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', diff --git a/Theme/Backend/promotion-list.tpl.php b/Theme/Backend/promotion-list.tpl.php index ecf0aa7..639a334 100644 --- a/Theme/Backend/promotion-list.tpl.php +++ b/Theme/Backend/promotion-list.tpl.php @@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?>