mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-02-13 19:38:40 +00:00
fix urls
This commit is contained in:
parent
c481a67800
commit
f8aa8237ad
|
|
@ -19,7 +19,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Employees",
|
"name": "Employees",
|
||||||
"uri": "{/prefix}humanresource/staff/list",
|
"uri": "{/lang}/{/app}/humanresource/staff/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "{/prefix}humanresource/staff/list",
|
"uri": "{/lang}/{/app}/humanresource/staff/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/prefix}humanresource/staff/create?{?}",
|
"uri": "{/lang}/{/app}/humanresource/staff/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 5,
|
"order": 5,
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Departments",
|
"name": "Departments",
|
||||||
"uri": "{/prefix}humanresource/department/list",
|
"uri": "{/lang}/{/app}/humanresource/department/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "{/prefix}humanresource/department/list",
|
"uri": "{/lang}/{/app}/humanresource/department/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Positions",
|
"name": "Positions",
|
||||||
"uri": "{/prefix}humanresource/position/list",
|
"uri": "{/lang}/{/app}/humanresource/position/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -113,7 +113,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "{/prefix}humanresource/position/list",
|
"uri": "{/lang}/{/app}/humanresource/position/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -129,7 +129,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/prefix}humanresource/position/create?{?}",
|
"uri": "{/lang}/{/app}/humanresource/position/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 5,
|
"order": 5,
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td><?= $this->getHtml('Parent'); ?>
|
<td><?= $this->getHtml('Parent'); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($departments as $key => $value) : ++$c;
|
<?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; ?>">
|
<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('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
|
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
<td><?= $this->getHtml('Status'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($employees as $key => $value) : ++$c;
|
<?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; ?>">
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_staff'); ?>" width="30" loading="lazy" class="profile-image"
|
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_staff'); ?>" width="30" loading="lazy" class="profile-image"
|
||||||
src="<?=
|
src="<?=
|
||||||
$value->profile->image instanceof NullMedia ?
|
$value->profile->image instanceof NullMedia ?
|
||||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
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('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml(
|
<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)
|
\sprintf('%3$s %2$s %1$s', $value->profile->account->name1, $value->profile->account->name2, $value->profile->account->name3)
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,8 @@ echo $this->getData('nav')->render(); ?>
|
||||||
$employee->image instanceof NullMedia ?
|
$employee->image instanceof NullMedia ?
|
||||||
($employee->profile->image instanceof NullMedia ?
|
($employee->profile->image instanceof NullMedia ?
|
||||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||||
UriFactory::build('' . $employee->profile->image->getPath())) :
|
UriFactory::build('{/lang}/{/app}/' . $employee->profile->image->getPath())) :
|
||||||
UriFactory::build('' . $employee->image->getPath()); ?>"
|
UriFactory::build('{/lang}/{/app}/' . $employee->image->getPath()); ?>"
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
<table class="list">
|
<table class="list">
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"creator": {
|
"creator": {
|
||||||
"name": "Karaka",
|
"name": "Karaka",
|
||||||
"website": "www.spl1nes.com"
|
"website": "jingga.app"
|
||||||
},
|
},
|
||||||
"description": "Human Resources module.",
|
"description": "Human Resources module.",
|
||||||
"directory": "HumanResourceManagement",
|
"directory": "HumanResourceManagement",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user