diff --git a/Admin/Install/nav.install.json b/Admin/Install/nav.install.json index 77bf65b..98dac36 100644 --- a/Admin/Install/nav.install.json +++ b/Admin/Install/nav.install.json @@ -13,54 +13,6 @@ "permission": null, "parent": 0, "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": [ - ] - } - ] - } ] } ] diff --git a/Controller.php b/Controller.php index 1e3ea36..c414417 100644 --- a/Controller.php +++ b/Controller.php @@ -83,28 +83,8 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 */ 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 - */ - 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 RequestAbstract $request Request diff --git a/Theme/backend/stock-list.tpl.php b/Theme/backend/stock-list.tpl.php deleted file mode 100644 index a2b4f6c..0000000 --- a/Theme/backend/stock-list.tpl.php +++ /dev/null @@ -1,53 +0,0 @@ - - * @author Dennis Eichhorn - * @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(); ?> - -
- - - - - - - $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?id=' . $value->getId()); ?> - - -
l11n->lang['WarehouseManagement']['Stock']; ?>
l11n->lang[0]['ID']; ?> - l11n->lang['WarehouseManagement']['Article']; ?> - l11n->lang['WarehouseManagement']['Quantity']; ?> -
render(); ?> -
getId(); ?> - getName(); ?> - getParent(); ?> - getUnit(); ?> - - -
l11n->lang[0]['Empty']; ?> - -
-