mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-02-11 10:28:41 +00:00
Fixing remaining bugs for route-restructure
This commit is contained in:
parent
6052f2c0e6
commit
d1c8fe35fa
|
|
@ -17,6 +17,7 @@ namespace Modules\HumanResourceManagement\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabaseType;
|
use phpOMS\DataStorage\Database\DatabaseType;
|
||||||
use phpOMS\DataStorage\Database\Pool;
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
use phpOMS\Module\InfoManager;
|
||||||
use phpOMS\Module\InstallerAbstract;
|
use phpOMS\Module\InstallerAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/backend/hr/staff/list.*$' => [
|
'^.*/backend/hr/staff/list.*$' => [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function viewHrList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
public function viewHrList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
{
|
{
|
||||||
$view = new View($this->app, $request, $response);
|
$view = new View($this->app, $request, $response);
|
||||||
$view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-list');
|
$view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-list');
|
||||||
|
|
@ -110,7 +110,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function viewHrCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
public function viewHrCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
{
|
{
|
||||||
$view = new View($this->app, $request, $response);
|
$view = new View($this->app, $request, $response);
|
||||||
$view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-create');
|
$view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-create');
|
||||||
|
|
@ -129,7 +129,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function viewHrDepartmentList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
public function viewHrDepartmentList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
{
|
{
|
||||||
$view = new View($this->app, $request, $response);
|
$view = new View($this->app, $request, $response);
|
||||||
$view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/department-list');
|
$view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/department-list');
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
$MODLANG['HumanResourceManagement'] = [
|
return ['HumanResourceManagement' => [
|
||||||
'Department' => 'Department',
|
'Department' => 'Department',
|
||||||
'Departments' => 'Departments',
|
'Departments' => 'Departments',
|
||||||
'Employees' => 'Employees',
|
'Employees' => 'Employees',
|
||||||
|
|
@ -24,4 +24,4 @@ $MODLANG['HumanResourceManagement'] = [
|
||||||
'Staff' => 'Staff',
|
'Staff' => 'Staff',
|
||||||
'Status' => 'Status',
|
'Status' => 'Status',
|
||||||
'Vacation' => 'Vacation',
|
'Vacation' => 'Vacation',
|
||||||
];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
$MODLANG['Navigation'] = [
|
return ['Navigation' => [
|
||||||
'Departments' => 'Departments',
|
'Departments' => 'Departments',
|
||||||
'Employees' => 'Employees',
|
'Employees' => 'Employees',
|
||||||
'HumanResources' => 'Human Resources',
|
'HumanResources' => 'Human Resources',
|
||||||
|
|
@ -24,4 +24,4 @@ $MODLANG['Navigation'] = [
|
||||||
'Shifts' => 'Shifts',
|
'Shifts' => 'Shifts',
|
||||||
'Staff' => 'Staff',
|
'Staff' => 'Staff',
|
||||||
'Structure' => 'Structure',
|
'Structure' => 'Structure',
|
||||||
];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
$MODLANG['HumanResourceManagement'] = [
|
return ['HumanResourceManagement' => [
|
||||||
'Department' => 'Department',
|
'Department' => 'Department',
|
||||||
'Departments' => 'Departments',
|
'Departments' => 'Departments',
|
||||||
'Employees' => 'Employees',
|
'Employees' => 'Employees',
|
||||||
|
|
@ -24,4 +24,4 @@ $MODLANG['HumanResourceManagement'] = [
|
||||||
'Staff' => 'Staff',
|
'Staff' => 'Staff',
|
||||||
'Status' => 'Status',
|
'Status' => 'Status',
|
||||||
'Vacation' => 'Vacation',
|
'Vacation' => 'Vacation',
|
||||||
];
|
]];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user