diff --git a/Controller/BackendController.php b/Controller/BackendController.php index d410bb3..2fa468c 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -74,6 +74,9 @@ final class BackendController extends Controller $view->setTemplate('/Modules/ItemManagement/Theme/Backend/purchase-item-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004806001, $request, $response)); + $items = ItemMapper::withConditional('language', $response->getLanguage())::getAfterPivot(0, null, 25); + $view->addData('items', $items); + return $view; } diff --git a/Theme/Backend/purchase-item-list.tpl.php b/Theme/Backend/purchase-item-list.tpl.php index f64a7e1..15f5852 100644 --- a/Theme/Backend/purchase-item-list.tpl.php +++ b/Theme/Backend/purchase-item-list.tpl.php @@ -12,36 +12,69 @@ */ declare(strict_types=1); -$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); -$footerView->setPages(20); -$footerView->setPage(1); +use Modules\Media\Models\NullMedia; +use phpOMS\Uri\UriFactory; + +/** @var \phpOMS\Views\View $this */ +$items = $this->getData('items'); echo $this->getData('nav')->render(); ?>
| = $this->getHtml('ID', '0', '0'); ?> + + + | = $this->getHtml('Name'); ?> + + + | = $this->getHtml('Name'); ?> + + | = $this->getHtml('Name'); ?> + + | = $this->getHtml('Price'); ?> + + | = $this->getHtml('Available'); ?> + + | = $this->getHtml('Reserved'); ?> + + | = $this->getHtml('Ordered'); ?> - | |
| + + | ||||||||
| = $this->printHtml($value->number); ?> + | = $this->printHtml($value->getL11n('name1')->description); ?> + | = $this->printHtml($value->getL11n('name2')->description); ?> + | = $this->printHtml($value->getL11n('name3')->description); ?> + | + | + | + | - | |
| = $this->getHtml('Empty', '0', '0'); ?> - + | ||||||||
| = $this->getHtml('Empty', '0', '0'); ?> + | ||||||||