started with template fixes

This commit is contained in:
Dennis Eichhorn 2024-03-29 15:26:00 +00:00
parent b60b0b2f0c
commit 20b2713d89
5 changed files with 26 additions and 2 deletions

View File

@ -10,6 +10,7 @@ return [
[
'dest' => '\Modules\StockTaking\Controller\ApiController:apiStockTakingCreate',
'verb' => RouteVerb::PUT,
'csrf' => true,
'permission' => [
'module' => ApiController::MODULE_NAME,
'type' => PermissionType::READ,
@ -21,6 +22,7 @@ return [
[
'dest' => '\Modules\StockTaking\Controller\ApiController:apiStockTakingEntryCreate',
'verb' => RouteVerb::SET,
'csrf' => true,
'permission' => [
'module' => ApiController::MODULE_NAME,
'type' => PermissionType::READ,

View File

@ -0,0 +1,19 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\StockTaking
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['StockTaking' => [
'Stocktaking' => 'Inventur',
'Date' => 'Datum',
'Status' => 'Status',
]];

View File

@ -13,4 +13,7 @@
declare(strict_types=1);
return ['StockTaking' => [
'Stocktaking' => 'Stock Taking',
'Date' => 'Date',
'Status' => 'Status',
]];

View File

@ -43,7 +43,7 @@ echo $this->data['nav']->render(); ?>
?>
<tr data-href="<?= $url; ?>">
<td>
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml((string) $value->id); ?></a>
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->id; ?></a>
<td data-label="<?= $this->getHtml('Status'); ?>"><a href="<?= $url; ?>"><?= $this->getHtml(':status' . $value->status); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
<td data-label="<?= $this->getHtml('Type'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->type->getL11n()); ?></a>

View File

@ -39,7 +39,7 @@ echo $this->data['nav']->render(); ?>
?>
<tr data-href="<?= $url; ?>">
<td>
<td data-label="<?= $this->getHtml('Date', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml((string) $value->id); ?></a>
<td data-label="<?= $this->getHtml('Date', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->id; ?></a>
<td>
<?php endforeach; ?>
<?php if ($count === 0) : ?>