From 7d88192b2b09b6da4191f68b6c8ba14d0bb37cb3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 16 Jun 2023 19:32:49 +0200 Subject: [PATCH] Updated file header --- Admin/Install/Navigation.install.json | 6 +-- Admin/Install/Navigation.php | 2 +- Admin/Routes/Web/Backend.php | 49 +++++++++++++++++++++- Admin/Status.php | 2 +- Admin/Uninstaller.php | 2 +- Admin/Updater.php | 2 +- Controller/BackendController.php | 48 +++++++++++++++++++-- Controller/Controller.php | 2 +- Models/PermissionCategory.php | 2 +- Theme/Backend/Lang/Navigation.en.lang.php | 2 +- Theme/Backend/Lang/en.lang.php | 2 +- Theme/Backend/investment-dashboard.tpl.php | 2 +- 12 files changed, 104 insertions(+), 17 deletions(-) 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 @@