diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 211f2df..14aa3ed 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Contract", - "uri": "{/prefix}contract/list?{?}", + "uri": "{/lang}/{/app}/contract/list?{?}", "target": "self", "icon": null, "order": 45, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "Contracts", - "uri": "{/prefix}contract/list?{?}", + "uri": "{/lang}/{/app}/contract/list?{?}", "target": "self", "icon": null, "order": 1, diff --git a/Theme/Backend/contract-list.tpl.php b/Theme/Backend/contract-list.tpl.php index 74672f0..170deff 100755 --- a/Theme/Backend/contract-list.tpl.php +++ b/Theme/Backend/contract-list.tpl.php @@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory; */ $contracts = $this->getData('contracts') ?? []; -$previous = empty($contracts) ? 'contract/list' : 'contract/list?{?}&id=' . \reset($contracts)->getId() . '&ptype=p'; -$next = empty($contracts) ? 'contract/list' : 'contract/list?{?}&id=' . \end($contracts)->getId() . '&ptype=n'; +$previous = empty($contracts) ? '{/lang}/{/app}/contract/list' : '{/lang}/{/app}/contract/list?{?}&id=' . \reset($contracts)->getId() . '&ptype=p'; +$next = empty($contracts) ? '{/lang}/{/app}/contract/list' : '{/lang}/{/app}/contract/list?{?}&id=' . \end($contracts)->getId() . '&ptype=n'; $now = new \DateTime('now'); @@ -73,7 +73,7 @@ echo $this->getData('nav')->render(); ?>
$value) : - $url = UriFactory::build('contract/single?{?}&id=' . $value->getId()); + $url = UriFactory::build('{/lang}/{/app}/contract/single?{?}&id=' . $value->getId()); $type = 'ok'; if (($value->end->getTimestamp() < $now->getTimestamp() && $value->end->getTimestamp() + 7776000 > $now->getTimestamp()) @@ -88,7 +88,7 @@ echo $this->getData('nav')->render(); ?> ?>