diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index b8dad4a..9190a29 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -1,48 +1,33 @@ [ { - "id": 1007101001, + "id": 1008301001, "pid": "/", "type": 2, "subtype": 1, - "name": "Investment", - "uri": "{/prefix}finance/investment/dashboard?{?}", + "name": "Loan", + "uri": "{/base}finance/loan/list?{?}", "target": "self", "icon": null, "order": 1, - "from": "InvestmentManagement", + "from": "LoanManagement", "permission": { "permission": 2, "type": null, "element": null }, "parent": 1008101001, "children": [ { - "id": 1007102001, - "pid": "/finance/investment", + "id": 1008302001, + "pid": "/finance/loan", "type": 3, "subtype": 1, - "name": "Dashboard", - "uri": "{/prefix}finance/investment/dashboard?{?}", + "name": "List", + "uri": "{/base}finance/loan/list?{?}", "target": "self", "icon": null, "order": 1, - "from": "InvestmentManagement", + "from": "LoanManagement", "permission": { "permission": 2, "type": null, "element": null }, - "parent": 1007101001, + "parent": 1008301001, "children": [] } ] - }, - { - "id": 1007103001, - "pid": "/", - "type": 2, - "subtype": 1, - "name": "PurchaseInquiries", - "uri": "{/base}/private/investment?{?}", - "target": "self", - "icon": null, - "order": 10, - "from": "InvestmentManagement", - "permission": { "permission": 2, "category": null, "element": null }, - "parent": 1003401001, - "children": [] } ] diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 89c686a..1388d97 100755 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -1,10 +1,10 @@ [ + '^.*/controlling/loan/list.*$' => [ [ - 'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentDashboard', + 'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanList', 'verb' => RouteVerb::GET, 'permission' => [ 'module' => BackendController::MODULE_NAME, 'type' => PermissionType::READ, - 'state' => PermissionCategory::INVESTMENT, + 'state' => PermissionCategory::LOAN, + ], + ], + ], + '^.*/controlling/loan/single.*$' => [ + [ + 'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanSingle', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionCategory::LOAN, + ], + ], + ], + '^.*/controlling/loan/create.*$' => [ + [ + 'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanCreate', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionCategory::LOAN, ], ], ], diff --git a/Admin/Status.php b/Admin/Status.php index ccb4a10..0bc11fe 100755 --- a/Admin/Status.php +++ b/Admin/Status.php @@ -1,10 +1,10 @@ app->l11nManager, $request, $response); - $view->setTemplate('/Modules/InvestmentManagement/Theme/Backend/investment-dashboard'); + $view->setTemplate('/Modules/LoanManagement/Theme/Backend/loan-list'); $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..2021b5c 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -1,10 +1,10 @@ [ - 'Dashboard' => 'Dashboard', - 'Investment' => 'Investment', + 'List' => 'List', + 'Loan' => 'Loan', ]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 10a370e..26e79f0 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -1,10 +1,10 @@ [ +return ['LoanManagement' => [ ]]; diff --git a/Theme/Backend/investment-dashboard.tpl.php b/Theme/Backend/loan-list.tpl.php old mode 100755 new mode 100644 similarity index 76% rename from Theme/Backend/investment-dashboard.tpl.php rename to Theme/Backend/loan-list.tpl.php index ece00b6..85fb281 --- a/Theme/Backend/investment-dashboard.tpl.php +++ b/Theme/Backend/loan-list.tpl.php @@ -1,10 +1,10 @@