From 10192993eaddaa2f2732b0cd21c13a0f8f29e045 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 8 Nov 2017 22:39:51 +0100 Subject: [PATCH] Fix #13 --- Admin/Install/Navigation.install.json | 32 +++++++++--------- Theme/Backend/item-create.tpl.php | 48 +++++++++++++-------------- Theme/Backend/sales-item-list.tpl.php | 2 +- Theme/Backend/stock-list.tpl.php | 2 +- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 045b8d3..3db403f 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Articles", - "uri": "{/base}/{/lang}/backend/sales/item/list?{?}", + "uri": "/{/lang}/backend/sales/item/list?{?}", "target": "self", "icon": null, "order": 10, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/{/lang}/backend/sales/item/list?{?}", + "uri": "/{/lang}/backend/sales/item/list?{?}", "target": "self", "icon": null, "order": 1, @@ -33,7 +33,7 @@ "type": 3, "subtype": 1, "name": "Article", - "uri": "{/base}/{/lang}/backend/sales/item/single?{?}", + "uri": "/{/lang}/backend/sales/item/single?{?}", "target": "self", "icon": null, "order": 1, @@ -50,7 +50,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/{/lang}/backend/sales/item/create?{?}", + "uri": "/{/lang}/backend/sales/item/create?{?}", "target": "self", "icon": null, "order": 5, @@ -67,7 +67,7 @@ "type": 2, "subtype": 1, "name": "Articles", - "uri": "{/base}/{/lang}/backend/purchase/item/list?{?}", + "uri": "/{/lang}/backend/purchase/item/list?{?}", "target": "self", "icon": null, "order": 10, @@ -81,7 +81,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/{/lang}/backend/purchase/item/list?{?}", + "uri": "/{/lang}/backend/purchase/item/list?{?}", "target": "self", "icon": null, "order": 1, @@ -95,7 +95,7 @@ "type": 3, "subtype": 1, "name": "Article", - "uri": "{/base}/{/lang}/backend/purchase/item/single?{?}", + "uri": "/{/lang}/backend/purchase/item/single?{?}", "target": "self", "icon": null, "order": 1, @@ -112,7 +112,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/{/lang}/backend/purchase/item/create?{?}", + "uri": "/{/lang}/backend/purchase/item/create?{?}", "target": "self", "icon": null, "order": 5, @@ -129,7 +129,7 @@ "type": 2, "subtype": 1, "name": "Stock", - "uri": "{/base}/{/lang}/backend/warehouse/stock/list?{?}", + "uri": "/{/lang}/backend/warehouse/stock/list?{?}", "target": "self", "icon": null, "order": 10, @@ -143,7 +143,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/{/lang}/backend/warehouse/stock/list?{?}", + "uri": "/{/lang}/backend/warehouse/stock/list?{?}", "target": "self", "icon": null, "order": 1, @@ -157,7 +157,7 @@ "type": 3, "subtype": 1, "name": "Article", - "uri": "{/base}/{/lang}/backend/warehouse/stock/single?{?}", + "uri": "/{/lang}/backend/warehouse/stock/single?{?}", "target": "self", "icon": null, "order": 1, @@ -174,7 +174,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/{/lang}/backend/warehouse/stock/create?{?}", + "uri": "/{/lang}/backend/warehouse/stock/create?{?}", "target": "self", "icon": null, "order": 5, @@ -191,7 +191,7 @@ "type": 2, "subtype": 1, "name": "Articles", - "uri": "{/base}/{/lang}/backend/production/item/list?{?}", + "uri": "/{/lang}/backend/production/item/list?{?}", "target": "self", "icon": null, "order": 5, @@ -205,7 +205,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/{/lang}/backend/production/item/list?{?}", + "uri": "/{/lang}/backend/production/item/list?{?}", "target": "self", "icon": null, "order": 1, @@ -219,7 +219,7 @@ "type": 3, "subtype": 1, "name": "Article", - "uri": "{/base}/{/lang}/backend/production/item/single?{?}", + "uri": "/{/lang}/backend/production/item/single?{?}", "target": "self", "icon": null, "order": 1, @@ -236,7 +236,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/{/lang}/backend/production/item/create?{?}", + "uri": "/{/lang}/backend/production/item/create?{?}", "target": "self", "icon": null, "order": 5, diff --git a/Theme/Backend/item-create.tpl.php b/Theme/Backend/item-create.tpl.php index 8ea28e8..f428233 100644 --- a/Theme/Backend/item-create.tpl.php +++ b/Theme/Backend/item-create.tpl.php @@ -43,7 +43,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Item'); ?>

-
+
@@ -69,7 +69,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Language'); ?>

- +
@@ -97,7 +97,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Property'); ?>

- +
@@ -116,7 +116,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Language'); ?>

- +
@@ -135,7 +135,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Language'); ?>

- +
@@ -155,7 +155,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Attribute'); ?>

- +
@@ -174,7 +174,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Language'); ?>

- +
@@ -193,7 +193,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Language'); ?>

- +
@@ -215,7 +215,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Sales'); ?>

- +
@@ -257,7 +257,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Price'); ?>

- +
@@ -293,7 +293,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Purchase'); ?>

- +
@@ -326,7 +326,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Price'); ?>

- +
@@ -350,7 +350,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Stock'); ?>

- +
@@ -374,7 +374,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Supplier'); ?>

- +
@@ -392,7 +392,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Accounting'); ?>

- +
@@ -413,7 +413,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Production'); ?>

- +
@@ -443,7 +443,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('StockList'); ?>

- +
@@ -461,7 +461,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('QM'); ?>

- +
@@ -474,7 +474,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Packaging'); ?>

- +
@@ -506,7 +506,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Media'); ?>

- +
@@ -522,7 +522,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Stock'); ?>

- +
@@ -535,7 +535,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Stock'); ?>

- +
@@ -559,7 +559,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Disposal'); ?>

- +
@@ -572,7 +572,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Files'); ?>

- + $value) : $count++; - $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/sales/item/single?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/sales/item/single?{?}&id=' . $value->getId()); ?> $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/business/department/profile?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?{?}&id=' . $value->getId()); ?>
diff --git a/Theme/Backend/sales-item-list.tpl.php b/Theme/Backend/sales-item-list.tpl.php index e5dcfbb..e31c0ea 100644 --- a/Theme/Backend/sales-item-list.tpl.php +++ b/Theme/Backend/sales-item-list.tpl.php @@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?> render(); ?>
printHtml($value->getNumber()); ?> diff --git a/Theme/Backend/stock-list.tpl.php b/Theme/Backend/stock-list.tpl.php index 226806b..554e7ef 100644 --- a/Theme/Backend/stock-list.tpl.php +++ b/Theme/Backend/stock-list.tpl.php @@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
render(); ?>
printHtml($value->getId()); ?> printHtml($value->getName()); ?>