mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-05 23:08:41 +00:00
fix urls
This commit is contained in:
parent
ed9013299a
commit
fcf1b24ec9
|
|
@ -19,7 +19,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Attributes",
|
||||
"uri": "{/prefix}item/attribute/type?{?}",
|
||||
"uri": "{/lang}/{/app}/item/attribute/type?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 15,
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Types",
|
||||
"uri": "{/prefix}item/attribute/type?{?}",
|
||||
"uri": "{/lang}/{/app}/item/attribute/type?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 15,
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Values",
|
||||
"uri": "{/prefix}item/attribute/value?{?}",
|
||||
"uri": "{/lang}/{/app}/item/attribute/value?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 15,
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Articles",
|
||||
"uri": "{/prefix}sales/item/list",
|
||||
"uri": "{/lang}/{/app}/sales/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}sales/item/list",
|
||||
"uri": "{/lang}/{/app}/sales/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Article",
|
||||
"uri": "{/prefix}sales/item/single?{?}",
|
||||
"uri": "{/lang}/{/app}/sales/item/single?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -112,7 +112,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}sales/item/create?{?}",
|
||||
"uri": "{/lang}/{/app}/sales/item/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -129,7 +129,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Articles",
|
||||
"uri": "{/prefix}purchase/item/list",
|
||||
"uri": "{/lang}/{/app}/purchase/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}purchase/item/list",
|
||||
"uri": "{/lang}/{/app}/purchase/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -157,7 +157,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Article",
|
||||
"uri": "{/prefix}purchase/item/single?{?}",
|
||||
"uri": "{/lang}/{/app}/purchase/item/single?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -174,7 +174,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}purchase/item/create?{?}",
|
||||
"uri": "{/lang}/{/app}/purchase/item/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -191,7 +191,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Articles",
|
||||
"uri": "{/prefix}warehouse/item/list",
|
||||
"uri": "{/lang}/{/app}/warehouse/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
@ -205,7 +205,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}warehouse/item/list",
|
||||
"uri": "{/lang}/{/app}/warehouse/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -219,7 +219,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Article",
|
||||
"uri": "{/prefix}warehouse/item/single?{?}",
|
||||
"uri": "{/lang}/{/app}/warehouse/item/single?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -236,7 +236,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}warehouse/item/create?{?}",
|
||||
"uri": "{/lang}/{/app}/warehouse/item/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -253,7 +253,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Articles",
|
||||
"uri": "{/prefix}production/item/list",
|
||||
"uri": "{/lang}/{/app}/production/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -267,7 +267,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}production/item/list",
|
||||
"uri": "{/lang}/{/app}/production/item/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -281,7 +281,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Article",
|
||||
"uri": "{/prefix}production/item/single?{?}",
|
||||
"uri": "{/lang}/{/app}/production/item/single?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -298,7 +298,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}production/item/create?{?}",
|
||||
"uri": "{/lang}/{/app}/production/item/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -315,7 +315,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Article",
|
||||
"uri": "{/prefix}sales/analysis/item",
|
||||
"uri": "{/lang}/{/app}/sales/analysis/item",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
@ -330,7 +330,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Article",
|
||||
"uri": "{/prefix}purchase/analysis/item",
|
||||
"uri": "{/lang}/{/app}/purchase/analysis/item",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php
|
||||
$count = 0;
|
||||
foreach ($attributes as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('item/attribute/type?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/item/attribute/type?{?}&id=' . $value->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
|
|||
|
|
@ -127,14 +127,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
</label>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('purchase/item/profile?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/purchase/item/profile?{?}&id=' . $value->getId());
|
||||
$image = $value->getFileByType('backend_image');
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" 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><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>
|
||||
|
|
|
|||
|
|
@ -129,14 +129,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('sales/item/profile?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/sales/item/profile?{?}&id=' . $value->getId());
|
||||
$image = $value->getFileByType(0);
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" 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><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ echo $this->getData('nav')->render();
|
|||
<section class="portlet">
|
||||
<div class="portlet-body">
|
||||
<img alt="<?= $this->printHtml($image->name); ?>" width="100%" loading="lazy" class="item-image"
|
||||
src="<?= UriFactory::build('' . $image->getPath()); ?>">
|
||||
src="<?= UriFactory::build('{/lang}/{/app}/' . $image->getPath()); ?>">
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
|
@ -169,7 +169,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; ?>"><?= $this->printHtml($note->title); ?></a>
|
||||
|
|
@ -192,7 +192,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; ?>"><?= $this->printHtml($file->name); ?></a>
|
||||
|
|
@ -222,12 +222,12 @@ 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; ?>"><?= $this->printHtml($invoice->getNumber()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->type->getL11n()); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('sales/client/profile?{?}&id=' . $invoice->client->getId()); ?>"><?= $this->printHtml($invoice->billTo); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/sales/client/profile?{?}&id=' . $invoice->client->getId()); ?>"><?= $this->printHtml($invoice->billTo); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->netSales->getCurrency()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->createdAt->format('Y-m-d')); ?></a>
|
||||
<?php endforeach; ?>
|
||||
|
|
@ -250,7 +250,7 @@ echo $this->getData('nav')->render();
|
|||
<td><?= $this->getHtml('Net'); ?>
|
||||
<tbody>
|
||||
<?php $i = -1; foreach ($topCustomers as $client) : ++$i;
|
||||
$url = UriFactory::build('sales/client/profile?id=' . $client->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/sales/client/profile?id=' . $client->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($client->number); ?></a>
|
||||
|
|
@ -468,7 +468,7 @@ echo $this->getData('nav')->render();
|
|||
<tbody>
|
||||
<?php $c = 0;
|
||||
foreach ($itemL11n as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -546,7 +546,7 @@ echo $this->getData('nav')->render();
|
|||
<tbody>
|
||||
<?php $c = 0;
|
||||
foreach ($itemAttribute as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -628,7 +628,7 @@ echo $this->getData('nav')->render();
|
|||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -759,7 +759,7 @@ echo $this->getData('nav')->render();
|
|||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -930,7 +930,7 @@ echo $this->getData('nav')->render();
|
|||
<?php
|
||||
/** @var \Modules\Billing\Models\Bill $invoice */
|
||||
foreach ($allInvoices 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>
|
||||
|
|
|
|||
|
|
@ -52,14 +52,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
<input id="itemList-r8-desc" name="itemList-sort" type="radio"><label for="itemList-r8-desc"><i class="sort-desc fa fa-chevron-down"></i></label>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('warehouse/item/profile?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/warehouse/item/profile?{?}&id=' . $value->getId());
|
||||
$image = $value->getFileByType('backend_image');
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->printHtml($image->name); ?>" 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><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user