This commit is contained in:
Dennis Eichhorn 2022-12-10 22:17:54 +01:00
parent c481a67800
commit f8aa8237ad
5 changed files with 14 additions and 14 deletions

View File

@ -19,7 +19,7 @@
"type": 2,
"subtype": 1,
"name": "Employees",
"uri": "{/prefix}humanresource/staff/list",
"uri": "{/lang}/{/app}/humanresource/staff/list",
"target": "self",
"icon": null,
"order": 1,
@ -33,7 +33,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/prefix}humanresource/staff/list",
"uri": "{/lang}/{/app}/humanresource/staff/list",
"target": "self",
"icon": null,
"order": 1,
@ -49,7 +49,7 @@
"type": 3,
"subtype": 1,
"name": "Create",
"uri": "{/prefix}humanresource/staff/create?{?}",
"uri": "{/lang}/{/app}/humanresource/staff/create?{?}",
"target": "self",
"icon": null,
"order": 5,
@ -67,7 +67,7 @@
"type": 2,
"subtype": 1,
"name": "Departments",
"uri": "{/prefix}humanresource/department/list",
"uri": "{/lang}/{/app}/humanresource/department/list",
"target": "self",
"icon": null,
"order": 1,
@ -81,7 +81,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/prefix}humanresource/department/list",
"uri": "{/lang}/{/app}/humanresource/department/list",
"target": "self",
"icon": null,
"order": 1,
@ -99,7 +99,7 @@
"type": 2,
"subtype": 1,
"name": "Positions",
"uri": "{/prefix}humanresource/position/list",
"uri": "{/lang}/{/app}/humanresource/position/list",
"target": "self",
"icon": null,
"order": 1,
@ -113,7 +113,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/prefix}humanresource/position/list",
"uri": "{/lang}/{/app}/humanresource/position/list",
"target": "self",
"icon": null,
"order": 1,
@ -129,7 +129,7 @@
"type": 3,
"subtype": 1,
"name": "Create",
"uri": "{/prefix}humanresource/position/create?{?}",
"uri": "{/lang}/{/app}/humanresource/position/create?{?}",
"target": "self",
"icon": null,
"order": 5,

View File

@ -43,7 +43,7 @@ echo $this->getData('nav')->render(); ?>
<td><?= $this->getHtml('Parent'); ?>
<tbody>
<?php $c = 0; foreach ($departments as $key => $value) : ++$c;
$url = UriFactory::build('hr/department/single?{?}&id=' . $value->getId()); ?>
$url = UriFactory::build('{/lang}/{/app}/hr/department/single?{?}&id=' . $value->getId()); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>

View File

@ -42,13 +42,13 @@ echo $this->getData('nav')->render(); ?>
<td><?= $this->getHtml('Status'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
<tbody>
<?php $c = 0; foreach ($employees as $key => $value) : ++$c;
$url = UriFactory::build('humanresource/staff/profile?{?}&id=' . $value->getId()); ?>
$url = UriFactory::build('{/lang}/{/app}/humanresource/staff/profile?{?}&id=' . $value->getId()); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_staff'); ?>" width="30" loading="lazy" class="profile-image"
src="<?=
$value->profile->image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('' . $value->profile->image->getPath()); ?>"></a>
UriFactory::build('{/lang}/{/app}/' . $value->profile->image->getPath()); ?>"></a>
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml(
\sprintf('%3$s %2$s %1$s', $value->profile->account->name1, $value->profile->account->name2, $value->profile->account->name3)

View File

@ -55,8 +55,8 @@ echo $this->getData('nav')->render(); ?>
$employee->image instanceof NullMedia ?
($employee->profile->image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('' . $employee->profile->image->getPath())) :
UriFactory::build('' . $employee->image->getPath()); ?>"
UriFactory::build('{/lang}/{/app}/' . $employee->profile->image->getPath())) :
UriFactory::build('{/lang}/{/app}/' . $employee->image->getPath()); ?>"
>
</span>
<table class="list">

View File

@ -12,7 +12,7 @@
},
"creator": {
"name": "Karaka",
"website": "www.spl1nes.com"
"website": "jingga.app"
},
"description": "Human Resources module.",
"directory": "HumanResourceManagement",