diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index d84b59e..79ed66b 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Investment", - "uri": "{/prefix}finance/investment/dashboard?{?}", + "uri": "{/base}finance/investment/list?{?}", "target": "self", "icon": null, "order": 1, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "Dashboard", - "uri": "{/prefix}finance/investment/dashboard?{?}", + "uri": "{/base}finance/investment/list?{?}", "target": "self", "icon": null, "order": 1, @@ -36,7 +36,7 @@ "type": 2, "subtype": 1, "name": "PurchaseInquiries", - "uri": "{/prefix}/private/investment?{?}", + "uri": "{/base}/private/investment/list?{?}", "target": "self", "icon": null, "order": 10, diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 89c686a..0f09db1 100755 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -1,6 +1,6 @@ [ + '^.*/controlling/investment/list.*$' => [ [ - 'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentDashboard', + 'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentList', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionCategory::INVESTMENT, + ], + ], + ], + '^.*/controlling/investment/single.*$' => [ + [ + 'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentSingle', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionCategory::INVESTMENT, + ], + ], + ], + '^.*/controlling/investment/create.*$' => [ + [ + 'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentCreate', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionCategory::INVESTMENT, + ], + ], + ], + + '^.*/private/investment/list.*$' => [ + [ + 'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentList', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionCategory::INVESTMENT, + ], + ], + ], + '^.*/private/investment/single.*$' => [ + [ + 'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentSingle', 'verb' => RouteVerb::GET, 'permission' => [ 'module' => BackendController::MODULE_NAME, diff --git a/Admin/Status.php b/Admin/Status.php index ccb4a10..ef26fb6 100755 --- a/Admin/Status.php +++ b/Admin/Status.php @@ -1,6 +1,6 @@ app->l11nManager, $request, $response); - $view->setTemplate('/Modules/InvestmentManagement/Theme/Backend/investment-dashboard'); + $view->setTemplate('/Modules/InvestmentManagement/Theme/Backend/investment-list'); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response); + + return $view; + } + + /** + * Routing end-point for application behaviour. + * + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + public function viewInvestmentSingle(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app->l11nManager, $request, $response); + $view->setTemplate('/Modules/InvestmentManagement/Theme/Backend/investment-create'); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response); + + return $view; + } + + /** + * Routing end-point for application behaviour. + * + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + public function viewInvestmentCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app->l11nManager, $request, $response); + $view->setTemplate('/Modules/InvestmentManagement/Theme/Backend/investment-create'); $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response); return $view; diff --git a/Controller/Controller.php b/Controller/Controller.php index d6c6b8a..60f9836 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -1,6 +1,6 @@