From 5413acde6161e146634fb1f3684f6ce795312657 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 12 Apr 2024 00:52:07 +0000 Subject: [PATCH] fix bugs --- Admin/Install/Navigation.install.json | 20 ++++++++++---------- Controller/BackendController.php | 21 +++++++++++++++++++++ Theme/Backend/Lang/Navigation.de.lang.php | 2 +- Theme/Backend/Lang/Navigation.en.lang.php | 2 +- Theme/Backend/process-create.tpl.php | 18 ------------------ Theme/Backend/process-list.tpl.php | 18 ------------------ Theme/Backend/process-view.tpl.php | 18 ------------------ 7 files changed, 33 insertions(+), 66 deletions(-) delete mode 100644 Theme/Backend/process-create.tpl.php delete mode 100644 Theme/Backend/process-list.tpl.php delete mode 100644 Theme/Backend/process-view.tpl.php diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 59c90e1..4396676 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 0, "name": "Production", - "uri": "{/base}/production/dashboard?{?}", + "uri": "{/base}/production/dashboard", "target": "self", "icon": "local_fire_department", "order": 70, @@ -19,7 +19,7 @@ "type": 2, "subtype": 1, "name": "Production", - "uri": "{/base}/production/list?{?}", + "uri": "{/base}/production/list", "target": "self", "icon": null, "order": 5, @@ -33,7 +33,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/production/list?{?}", + "uri": "{/base}/production/list", "target": "self", "icon": null, "order": 5, @@ -48,7 +48,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/production/create?{?}", + "uri": "{/base}/production/create", "target": "self", "icon": null, "order": 10, @@ -65,7 +65,7 @@ "type": 2, "subtype": 1, "name": "Recipes", - "uri": "{/base}/production/recipe/list?{?}", + "uri": "{/base}/production/recipe/list", "target": "self", "icon": null, "order": 10, @@ -79,7 +79,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/production/recipe/list?{?}", + "uri": "{/base}/production/recipe/list", "target": "self", "icon": null, "order": 5, @@ -94,7 +94,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/production/recipe/create?{?}", + "uri": "{/base}/production/recipe/create", "target": "self", "icon": null, "order": 10, @@ -111,7 +111,7 @@ "type": 2, "subtype": 1, "name": "Machines", - "uri": "{/base}/production/machine/list?{?}", + "uri": "{/base}/production/machine/list", "target": "self", "icon": null, "order": 15, @@ -125,7 +125,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/production/machine/list?{?}", + "uri": "{/base}/production/machine/list", "target": "self", "icon": null, "order": 5, @@ -140,7 +140,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/production/machine/create?{?}", + "uri": "{/base}/production/machine/create", "target": "self", "icon": null, "order": 10, diff --git a/Controller/BackendController.php b/Controller/BackendController.php index d93bea9..9bbbd9e 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -50,6 +50,27 @@ final class BackendController extends Controller return $view; } + /** + * Routing end-point for application behavior. + * + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param array $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + public function viewProductionMachineList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app->l11nManager, $request, $response); + $view->setTemplate('/Modules/Production/Theme/Backend/machine-list'); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004303001, $request, $response); + + return $view; + } + /** * Routing end-point for application behavior. * diff --git a/Theme/Backend/Lang/Navigation.de.lang.php b/Theme/Backend/Lang/Navigation.de.lang.php index 5916fec..b245645 100644 --- a/Theme/Backend/Lang/Navigation.de.lang.php +++ b/Theme/Backend/Lang/Navigation.de.lang.php @@ -14,7 +14,7 @@ declare(strict_types=1); return ['Navigation' => [ 'Articles' => 'Artikel', - 'Process' => 'Prozess', + 'Recipes' => 'Anleitungen', 'Production' => 'Produktion', 'Machines' => 'Maschinen', 'List' => 'Liste', diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 91f2c35..d673270 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -14,7 +14,7 @@ declare(strict_types=1); return ['Navigation' => [ 'Articles' => 'Articles', - 'Process' => 'Process', + 'Recipes' => 'Recipes', 'Production' => 'Production', 'Machines' => 'Machines', 'List' => 'List', diff --git a/Theme/Backend/process-create.tpl.php b/Theme/Backend/process-create.tpl.php deleted file mode 100644 index 1a528aa..0000000 --- a/Theme/Backend/process-create.tpl.php +++ /dev/null @@ -1,18 +0,0 @@ -