diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 42fbe7a..cf36dae 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -8,45 +8,45 @@ use phpOMS\Router\RouteVerb; return [ '^.*/production/list.*$' => [ [ - 'dest' => '\Modules\Production\Controller\BackendController:viewProductionList', - 'verb' => RouteVerb::GET, + 'dest' => '\Modules\Production\Controller\BackendController:viewProductionList', + 'verb' => RouteVerb::GET, 'permission' => [ 'module' => BackendController::MODULE_NAME, - 'type' => PermissionType::READ, - 'state' => PermissionState::PRODUCTION, + 'type' => PermissionType::READ, + 'state' => PermissionState::PRODUCTION, ], ], ], '^.*/production/create.*$' => [ [ - 'dest' => '\Modules\Production\Controller\BackendController:viewProductionCreate', - 'verb' => RouteVerb::GET, + 'dest' => '\Modules\Production\Controller\BackendController:viewProductionCreate', + 'verb' => RouteVerb::GET, 'permission' => [ 'module' => BackendController::MODULE_NAME, - 'type' => PermissionType::CREATE, - 'state' => PermissionState::PRODUCTION, + 'type' => PermissionType::CREATE, + 'state' => PermissionState::PRODUCTION, ], ], ], '^.*/production/process/list.*$' => [ [ - 'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessList', - 'verb' => RouteVerb::GET, + 'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessList', + 'verb' => RouteVerb::GET, 'permission' => [ 'module' => BackendController::MODULE_NAME, - 'type' => PermissionType::READ, - 'state' => PermissionState::PROCESS, + 'type' => PermissionType::READ, + 'state' => PermissionState::PROCESS, ], ], ], '^.*/production/process/create.*$' => [ [ - 'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessCreate', - 'verb' => RouteVerb::GET, + 'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessCreate', + 'verb' => RouteVerb::GET, 'permission' => [ 'module' => BackendController::MODULE_NAME, - 'type' => PermissionType::CREATE, - 'state' => PermissionState::PROCESS, + 'type' => PermissionType::CREATE, + 'state' => PermissionState::PROCESS, ], ], ], diff --git a/Models/PermissionState.php b/Models/PermissionState.php index 190e138..37dd332 100644 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionState extends Enum { public const PRODUCTION = 1; + public const PROCESS = 2; } diff --git a/Theme/Backend/production-list.tpl.php b/Theme/Backend/production-list.tpl.php index 098d4f1..e8e6fed 100644 --- a/Theme/Backend/production-list.tpl.php +++ b/Theme/Backend/production-list.tpl.php @@ -29,22 +29,22 @@ echo $this->getData('nav')->render(); ?>
| = $this->getHtml('Status') ?> + | = $this->getHtml('Status'); ?> | = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('ID', '0', '0'); ?> - | = $this->getHtml('Article') ?> - | = $this->getHtml('Quantity') ?> - | = $this->getHtml('Start') ?> - | = $this->getHtml('Due') ?> - | = $this->getHtml('Done') ?> + | = $this->getHtml('Article'); ?> + | = $this->getHtml('Quantity'); ?> + | = $this->getHtml('Start'); ?> + | = $this->getHtml('Due'); ?> + | = $this->getHtml('Done'); ?> |
| = $this->printHtml($value->getId()); ?> | = $this->printHtml($value->getName()); ?> | ||||||||||||