From e2c2f16c329f29fbd61c178ca5204584694aa022 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 16 Jun 2023 19:32:50 +0200 Subject: [PATCH] Updated file header --- Admin/Install/Navigation.install.json | 35 ++++-------- Admin/Install/Navigation.php | 8 +-- Admin/Install/db.json | 55 +------------------ Admin/Installer.php | 8 +-- Admin/Routes/Web/Backend.php | 32 +++++++++-- Admin/Status.php | 8 +-- Admin/Uninstaller.php | 8 +-- Admin/Updater.php | 8 +-- Controller/BackendController.php | 14 ++--- Controller/Controller.php | 14 ++--- Models/Investment.php | 46 ---------------- Models/InvestmentObject.php | 47 ---------------- Models/InvestmentStatus.php | 10 ++-- Models/Money.php | 45 --------------- Models/MoneyType.php | 38 ------------- Models/PermissionCategory.php | 10 ++-- Theme/Backend/Lang/Navigation.en.lang.php | 6 +- Theme/Backend/Lang/en.lang.php | 6 +- ...nt-dashboard.tpl.php => loan-list.tpl.php} | 4 +- info.json | 18 +++--- 20 files changed, 99 insertions(+), 321 deletions(-) delete mode 100644 Models/Investment.php delete mode 100644 Models/InvestmentObject.php delete mode 100644 Models/Money.php delete mode 100644 Models/MoneyType.php rename Theme/Backend/{investment-dashboard.tpl.php => loan-list.tpl.php} (76%) mode change 100755 => 100644 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 @@