mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-16 06:08:40 +00:00
Templating
This commit is contained in:
parent
a0fa6300ad
commit
858c43a95f
|
|
@ -13,54 +13,6 @@
|
||||||
"permission": null,
|
"permission": null,
|
||||||
"parent": 0,
|
"parent": 0,
|
||||||
"children": [
|
"children": [
|
||||||
{
|
|
||||||
"id": 1001302001,
|
|
||||||
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
|
|
||||||
"type": 2,
|
|
||||||
"subtype": 1,
|
|
||||||
"name": "Stock",
|
|
||||||
"uri": "/{/lang}/backend/warehousing/stock/list",
|
|
||||||
"target": "self",
|
|
||||||
"icon": null,
|
|
||||||
"order": 5,
|
|
||||||
"from": 1001300000,
|
|
||||||
"permission": null,
|
|
||||||
"parent": 1001301001,
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"id": 1001302101,
|
|
||||||
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
|
|
||||||
"type": 3,
|
|
||||||
"subtype": 1,
|
|
||||||
"name": "List",
|
|
||||||
"uri": "/{/lang}/backend/warehousing/stock/list",
|
|
||||||
"target": "self",
|
|
||||||
"icon": null,
|
|
||||||
"order": 5,
|
|
||||||
"from": 1001300000,
|
|
||||||
"permission": null,
|
|
||||||
"parent": 1001302001,
|
|
||||||
"children": [
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1001302201,
|
|
||||||
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
|
|
||||||
"type": 3,
|
|
||||||
"subtype": 1,
|
|
||||||
"name": "Create",
|
|
||||||
"uri": "/{/lang}/backend/warehousing/stock/create",
|
|
||||||
"target": "self",
|
|
||||||
"icon": null,
|
|
||||||
"order": 10,
|
|
||||||
"from": 1001300000,
|
|
||||||
"permission": null,
|
|
||||||
"parent": 1001302001,
|
|
||||||
"children": [
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -83,28 +83,8 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $routes = [
|
protected static $routes = [
|
||||||
'^.*/backend/warehousing/stock/list.*$' => [['dest' => '\Modules\WarehouseManagement\Controller:viewWarehouseManagementStockList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
* @param ResponseAbstract $response Response
|
|
||||||
* @param mixed $data Generic data
|
|
||||||
*
|
|
||||||
* @return RenderableInterface
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function viewWarehouseManagementStockList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
|
||||||
{
|
|
||||||
$view = new View($this->app, $request, $response);
|
|
||||||
$view->setTemplate('/Modules/WarehouseManagement/Theme/backend/stock-list');
|
|
||||||
$view->addData('nav', $this->createNavigation(1003001001, $request, $response));
|
|
||||||
|
|
||||||
return $view;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $pageId Page/parent Id for navigation
|
* @param int $pageId Page/parent Id for navigation
|
||||||
* @param RequestAbstract $request Request
|
* @param RequestAbstract $request Request
|
||||||
|
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.0
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
/**
|
|
||||||
* @var \phpOMS\Views\View $this
|
|
||||||
*/
|
|
||||||
|
|
||||||
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
|
|
||||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
|
||||||
|
|
||||||
$footerView->setPages(1 / 25);
|
|
||||||
$footerView->setPage(1);
|
|
||||||
$footerView->setResults(1);
|
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
|
||||||
|
|
||||||
<section class="box w-100">
|
|
||||||
<table class="table">
|
|
||||||
<caption><?= $this->l11n->lang['WarehouseManagement']['Stock']; ?></caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
|
||||||
<td class="wf-100"><?= $this->l11n->lang['WarehouseManagement']['Article']; ?>
|
|
||||||
<td><?= $this->l11n->lang['WarehouseManagement']['Quantity']; ?>
|
|
||||||
<tfoot>
|
|
||||||
<tr><td colspan="8"><?= $footerView->render(); ?>
|
|
||||||
<tbody>
|
|
||||||
<?php $c = 0; foreach ([] as $key => $value) : $c++;
|
|
||||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?id=' . $value->getId()); ?>
|
|
||||||
<tr>
|
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getParent(); ?></a>
|
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getUnit(); ?></a>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
<?php if($c === 0) : ?>
|
|
||||||
<tr>
|
|
||||||
<td colspan="8" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</table>
|
|
||||||
</section>
|
|
||||||
Loading…
Reference in New Issue
Block a user