mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-11 20:28:40 +00:00
Language fixes
This commit is contained in:
parent
73f054461b
commit
8da34db740
|
|
@ -15,13 +15,11 @@
|
|||
*/
|
||||
namespace Modules\HumanResourceManagement;
|
||||
|
||||
use phpOMS\Contract\RenderableInterface;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
use phpOMS\Module\ModuleAbstract;
|
||||
use phpOMS\Module\WebInterface;
|
||||
use phpOMS\Views\View;
|
||||
use phpOMS\Views\ViewLayout;
|
||||
use Modules\HumanResourceManagement\Models\EmployeeMapper;
|
||||
|
||||
/**
|
||||
|
|
@ -84,7 +82,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
* @return \Serializable
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
|
|
@ -95,8 +93,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-list');
|
||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1002402001, $request, $response));
|
||||
|
||||
$mapper = new EmployeeMapper($this->app->dbPool()->get());
|
||||
$view->setData('employees', $mapper->getAll());
|
||||
$view->setData('employees', EmployeeMapper::getAll());
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
@ -106,7 +103,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
* @return \Serializable
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
|
|
@ -125,7 +122,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
* @return \Serializable
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ return ['HumanResourceManagement' => [
|
|||
'Name' => 'Name',
|
||||
'Parent' => 'Parent',
|
||||
'Personnel' => 'Personnel',
|
||||
'Position' => 'Position',
|
||||
'Shifts' => 'Shifts',
|
||||
'Staff' => 'Staff',
|
||||
'Status' => 'Status',
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><?= $this->l11n->lang['HumanResourceManagement']['Department']; ?>
|
||||
<td><?= $this->l11n->lang['HumanResourceManagement']['Status']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="4"><?= $footerView->render(); ?>
|
||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($employees as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
|
||||
|
|
@ -50,7 +50,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><a href="<?= $url; ?>"><?= $value->getNewestStatus()->getStatus(); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="4" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ return ['HumanResourceManagement' => [
|
|||
'Name' => 'Name',
|
||||
'Parent' => 'Parent',
|
||||
'Personnel' => 'Personnel',
|
||||
'Position' => 'Position',
|
||||
'Shifts' => 'Shifts',
|
||||
'Staff' => 'Staff',
|
||||
'Status' => 'Status',
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><?= $this->l11n->lang['HumanResourceManagement']['Department']; ?>
|
||||
<td><?= $this->l11n->lang['HumanResourceManagement']['Status']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="4"><?= $footerView->render(); ?>
|
||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($employees as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
|
||||
|
|
@ -50,7 +50,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><a href="<?= $url; ?>"><?= $value->getNewestStatus()->getStatus(); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="4" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user