mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-01-22 12:48:40 +00:00
fix urls
This commit is contained in:
parent
bea6ed1a3f
commit
1874e46708
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -103,14 +103,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
</label>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($clients as $key => $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);
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_client'); ?>" width="30" loading="lazy" class="item-image"
|
||||
src="<?= $image instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('' . $image->getPath()); ?>"></a>
|
||||
UriFactory::build('{/lang}/{/app}/' . $image->getPath()); ?>"></a>
|
||||
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->profile->account->name1); ?> <?= $this->printHtml($value->profile->account->name2); ?></a>
|
||||
<td data-label="<?= $this->getHtml('City'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->mainAddress->city); ?></a>
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><label class="checkbox" for="iBillSelect-<?= $key; ?>">
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ $items = $this->getData('items') ?? [];
|
|||
}
|
||||
|
||||
++$count;
|
||||
$url = UriFactory::build('sales/item/profile?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/sales/item/profile?{?}&id=' . $value->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><label class="checkbox" for="iSalesItemSelect-<?= $key; ?>">
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ echo $this->getData('nav')->render();
|
|||
<td><?= $this->getHtml('CreatedAt'); ?>
|
||||
<tbody>
|
||||
<?php foreach ($notes as $note) :
|
||||
$url = UriFactory::build('editor/single?{?}&id=' . $note->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/editor/single?{?}&id=' . $note->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $note->title; ?></a>
|
||||
|
|
@ -240,7 +240,7 @@ echo $this->getData('nav')->render();
|
|||
<td><?= $this->getHtml('CreatedAt'); ?>
|
||||
<tbody>
|
||||
<?php foreach ($files as $file) :
|
||||
$url = UriFactory::build('media/single?{?}&id=' . $file->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/media/single?{?}&id=' . $file->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $file->name; ?></a>
|
||||
|
|
@ -269,7 +269,7 @@ echo $this->getData('nav')->render();
|
|||
<?php
|
||||
/** @var \Modules\Billing\Models\Bill $invoice */
|
||||
foreach ($newestInvoices as $invoice) :
|
||||
$url = UriFactory::build('sales/bill?{?}&id=' . $invoice->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/sales/bill?{?}&id=' . $invoice->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $invoice->getNumber(); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user