This commit is contained in:
Dennis Eichhorn 2022-12-10 22:17:54 +01:00
parent ed9013299a
commit fcf1b24ec9
7 changed files with 40 additions and 40 deletions

View File

@ -19,7 +19,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Attributes", "name": "Attributes",
"uri": "{/prefix}item/attribute/type?{?}", "uri": "{/lang}/{/app}/item/attribute/type?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,
@ -33,7 +33,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Types", "name": "Types",
"uri": "{/prefix}item/attribute/type?{?}", "uri": "{/lang}/{/app}/item/attribute/type?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,
@ -48,7 +48,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Values", "name": "Values",
"uri": "{/prefix}item/attribute/value?{?}", "uri": "{/lang}/{/app}/item/attribute/value?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,
@ -67,7 +67,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Articles", "name": "Articles",
"uri": "{/prefix}sales/item/list", "uri": "{/lang}/{/app}/sales/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -81,7 +81,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/prefix}sales/item/list", "uri": "{/lang}/{/app}/sales/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -95,7 +95,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/prefix}sales/item/single?{?}", "uri": "{/lang}/{/app}/sales/item/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -112,7 +112,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/prefix}sales/item/create?{?}", "uri": "{/lang}/{/app}/sales/item/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -129,7 +129,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Articles", "name": "Articles",
"uri": "{/prefix}purchase/item/list", "uri": "{/lang}/{/app}/purchase/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -143,7 +143,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/prefix}purchase/item/list", "uri": "{/lang}/{/app}/purchase/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -157,7 +157,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/prefix}purchase/item/single?{?}", "uri": "{/lang}/{/app}/purchase/item/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -174,7 +174,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/prefix}purchase/item/create?{?}", "uri": "{/lang}/{/app}/purchase/item/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -191,7 +191,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Articles", "name": "Articles",
"uri": "{/prefix}warehouse/item/list", "uri": "{/lang}/{/app}/warehouse/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -205,7 +205,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/prefix}warehouse/item/list", "uri": "{/lang}/{/app}/warehouse/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -219,7 +219,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/prefix}warehouse/item/single?{?}", "uri": "{/lang}/{/app}/warehouse/item/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -236,7 +236,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/prefix}warehouse/item/create?{?}", "uri": "{/lang}/{/app}/warehouse/item/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -253,7 +253,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Articles", "name": "Articles",
"uri": "{/prefix}production/item/list", "uri": "{/lang}/{/app}/production/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -267,7 +267,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/prefix}production/item/list", "uri": "{/lang}/{/app}/production/item/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -281,7 +281,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/prefix}production/item/single?{?}", "uri": "{/lang}/{/app}/production/item/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -298,7 +298,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/prefix}production/item/create?{?}", "uri": "{/lang}/{/app}/production/item/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -315,7 +315,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/prefix}sales/analysis/item", "uri": "{/lang}/{/app}/sales/analysis/item",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -330,7 +330,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/prefix}purchase/analysis/item", "uri": "{/lang}/{/app}/purchase/analysis/item",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,

View File

@ -55,7 +55,7 @@ echo $this->getData('nav')->render(); ?>
<?php <?php
$count = 0; $count = 0;
foreach ($attributes as $key => $value) : ++$count; 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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>

View File

@ -127,14 +127,14 @@ echo $this->getData('nav')->render(); ?>
</label> </label>
<tbody> <tbody>
<?php $count = 0; foreach ($items as $key => $value) : ++$count; <?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'); $image = $value->getFileByType('backend_image');
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image" <td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image"
src="<?= $image instanceof NullMedia ? src="<?= $image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : 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->number); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>

View File

@ -129,14 +129,14 @@ echo $this->getData('nav')->render(); ?>
<tbody> <tbody>
<?php $count = 0; foreach ($items as $key => $value) : ++$count; <?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); $image = $value->getFileByType(0);
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image" <td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image"
src="<?= $image instanceof NullMedia ? src="<?= $image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : 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->number); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>

View File

@ -92,7 +92,7 @@ echo $this->getData('nav')->render();
<section class="portlet"> <section class="portlet">
<div class="portlet-body"> <div class="portlet-body">
<img alt="<?= $this->printHtml($image->name); ?>" width="100%" loading="lazy" class="item-image" <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> </div>
</section> </section>
<?php endif; ?> <?php endif; ?>
@ -169,7 +169,7 @@ echo $this->getData('nav')->render();
<td><?= $this->getHtml('CreatedAt'); ?> <td><?= $this->getHtml('CreatedAt'); ?>
<tbody> <tbody>
<?php foreach ($notes as $note) : <?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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($note->title); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($note->title); ?></a>
@ -192,7 +192,7 @@ echo $this->getData('nav')->render();
<td><?= $this->getHtml('CreatedAt'); ?> <td><?= $this->getHtml('CreatedAt'); ?>
<tbody> <tbody>
<?php foreach ($files as $file) : <?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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($file->name); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($file->name); ?></a>
@ -222,12 +222,12 @@ echo $this->getData('nav')->render();
<?php <?php
/** @var \Modules\Billing\Models\Bill $invoice */ /** @var \Modules\Billing\Models\Bill $invoice */
foreach ($newestInvoices as $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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->getNumber()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->getNumber()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->type->getL11n()); ?></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->netSales->getCurrency()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->createdAt->format('Y-m-d')); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->createdAt->format('Y-m-d')); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
@ -250,7 +250,7 @@ echo $this->getData('nav')->render();
<td><?= $this->getHtml('Net'); ?> <td><?= $this->getHtml('Net'); ?>
<tbody> <tbody>
<?php $i = -1; foreach ($topCustomers as $client) : ++$i; <?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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($client->number); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($client->number); ?></a>
@ -468,7 +468,7 @@ echo $this->getData('nav')->render();
<tbody> <tbody>
<?php $c = 0; <?php $c = 0;
foreach ($itemL11n as $key => $value) : ++$c; 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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="#"><i class="fa fa-times"></i></a> <td><a href="#"><i class="fa fa-times"></i></a>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
@ -546,7 +546,7 @@ echo $this->getData('nav')->render();
<tbody> <tbody>
<?php $c = 0; <?php $c = 0;
foreach ($itemAttribute as $key => $value) : ++$c; 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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="#"><i class="fa fa-times"></i></a> <td><a href="#"><i class="fa fa-times"></i></a>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
@ -628,7 +628,7 @@ echo $this->getData('nav')->render();
<?php $c = 0; <?php $c = 0;
$l11ns = []; $l11ns = [];
foreach ($l11ns as $key => $value) : ++$c; 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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="#"><i class="fa fa-times"></i></a> <td><a href="#"><i class="fa fa-times"></i></a>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
@ -759,7 +759,7 @@ echo $this->getData('nav')->render();
<?php $c = 0; <?php $c = 0;
$l11ns = []; $l11ns = [];
foreach ($l11ns as $key => $value) : ++$c; 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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="#"><i class="fa fa-times"></i></a> <td><a href="#"><i class="fa fa-times"></i></a>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
@ -930,7 +930,7 @@ echo $this->getData('nav')->render();
<?php <?php
/** @var \Modules\Billing\Models\Bill $invoice */ /** @var \Modules\Billing\Models\Bill $invoice */
foreach ($allInvoices as $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; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $invoice->getNumber(); ?></a> <td><a href="<?= $url; ?>"><?= $invoice->getNumber(); ?></a>

View File

@ -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> <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> <tbody>
<?php $count = 0; foreach ($items as $key => $value) : ++$count; <?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'); $image = $value->getFileByType('backend_image');
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img alt="<?= $this->printHtml($image->name); ?>" width="30" loading="lazy" class="item-image" <td><a href="<?= $url; ?>"><img alt="<?= $this->printHtml($image->name); ?>" width="30" loading="lazy" class="item-image"
src="<?= $image instanceof NullMedia ? src="<?= $image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : 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->number); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>

View File

@ -12,7 +12,7 @@
}, },
"creator": { "creator": {
"name": "Karaka", "name": "Karaka",
"website": "www.spl1nes.com" "website": "jingga.app"
}, },
"description": "Event Management module.", "description": "Event Management module.",
"directory": "ItemManagement", "directory": "ItemManagement",