From 1874e46708aa148a1d4e03f92864412b08de5bdd Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 10 Dec 2022 22:17:54 +0100 Subject: [PATCH] fix urls --- Admin/Install/Navigation.install.json | 12 ++++++------ Theme/Backend/client-list.tpl.php | 4 ++-- Theme/Backend/client-profile-bills.tpl.php | 2 +- Theme/Backend/client-profile-items.tpl.php | 2 +- Theme/Backend/client-profile.tpl.php | 6 +++--- info.json | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 0846c21..bd11657 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Clients", - "uri": "{/prefix}sales/client/list", + "uri": "{/lang}/{/app}/sales/client/list", "target": "self", "icon": null, "order": 1, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}sales/client/list", + "uri": "{/lang}/{/app}/sales/client/list", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/prefix}sales/client/create?{?}", + "uri": "{/lang}/{/app}/sales/client/create?{?}", "target": "self", "icon": null, "order": 1, @@ -51,7 +51,7 @@ "type": 3, "subtype": 1, "name": "Client", - "uri": "{/prefix}sales/analysis/client?{?}", + "uri": "{/lang}/{/app}/sales/analysis/client?{?}", "target": "self", "icon": null, "order": 2, @@ -66,7 +66,7 @@ "type": 3, "subtype": 1, "name": "Region", - "uri": "{/prefix}sales/analysis/region?{?}", + "uri": "{/lang}/{/app}/sales/analysis/region?{?}", "target": "self", "icon": null, "order": 3, @@ -81,7 +81,7 @@ "type": 3, "subtype": 1, "name": "SalesRep", - "uri": "{/prefix}sales/analysis/rep?{?}", + "uri": "{/lang}/{/app}/sales/analysis/rep?{?}", "target": "self", "icon": null, "order": 4, diff --git a/Theme/Backend/client-list.tpl.php b/Theme/Backend/client-list.tpl.php index 8566721..b3415dc 100755 --- a/Theme/Backend/client-list.tpl.php +++ b/Theme/Backend/client-list.tpl.php @@ -103,14 +103,14 @@ echo $this->getData('nav')->render(); ?> $value) : ++$count; - $url = UriFactory::build('sales/client/profile?{?}&id=' . $value->getId()); + $url = UriFactory::build('{/lang}/{/app}/sales/client/profile?{?}&id=' . $value->getId()); $image = $value->getFileByType(0); ?> <?= $this->getHtml('IMG_alt_client'); ?> + UriFactory::build('{/lang}/{/app}/' . $image->getPath()); ?>"> printHtml($value->number); ?> printHtml($value->profile->account->name1); ?> printHtml($value->profile->account->name2); ?> printHtml($value->mainAddress->city); ?> diff --git a/Theme/Backend/client-profile-bills.tpl.php b/Theme/Backend/client-profile-bills.tpl.php index 60ae5c0..3eabe75 100755 --- a/Theme/Backend/client-profile-bills.tpl.php +++ b/Theme/Backend/client-profile-bills.tpl.php @@ -166,7 +166,7 @@ $bills = $this->getData('newestInvoices') ?? []; /** @var \Modules\Billing\Models\Bill $value */ foreach ($bills as $key => $value) : ++$count; - $url = UriFactory::build('sales/bill?{?}&id=' . $value->getId()); + $url = UriFactory::build('{/lang}/{/app}/sales/bill?{?}&id=' . $value->getId()); ?>