mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-30 08:28:40 +00:00
permission changes & minor bug fixes
This commit is contained in:
parent
669231da8f
commit
9485c5c1f2
0
Admin/Install/Admin.install.json
Normal file → Executable file
0
Admin/Install/Admin.install.json
Normal file → Executable file
0
Admin/Install/Admin.install.php
Normal file → Executable file
0
Admin/Install/Admin.install.php
Normal file → Executable file
0
Admin/Install/Admin.php
Normal file → Executable file
0
Admin/Install/Admin.php
Normal file → Executable file
0
Admin/Install/Media/letter.pdf.php
Normal file → Executable file
0
Admin/Install/Media/letter.pdf.php
Normal file → Executable file
|
|
@ -5,9 +5,9 @@
|
|||
{
|
||||
"key": 1, "listener": "click", "action": [
|
||||
{"key": 1, "type": "dom.popup", "selector": "#acc-grp-tpl", "aniIn": "fadeIn", "id": "<?= $this->getId(); ?>"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('{/prefix}admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 3, "type": "dom.table.append", "id": "acc-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name"}, "position": -1},
|
||||
{"key": 4, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('{/prefix}admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 4, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 5, "type": "dom.table.append", "id": "grp-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name"}, "position": -1}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@
|
|||
{
|
||||
"key": 1, "listener": "click", "action": [
|
||||
{"key": 1, "type": "dom.popup", "selector": "#acc-grp-tpl", "aniIn": "fadeIn", "id": "<?= $this->getId(); ?>"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('{/prefix}admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 3, "type": "dom.table.append", "id": "acc-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name"}, "position": -1},
|
||||
{"key": 4, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('{/prefix}admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 4, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 5, "type": "dom.table.append", "id": "grp-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name"}, "position": -1}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
0
Theme/Backend/Lang/Navigation.ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.zh.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.zh.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/zh.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/zh.lang.php
Normal file → Executable file
|
|
@ -21,11 +21,11 @@ use phpOMS\Uri\UriFactory;
|
|||
$departments = $this->getData('departments') ?? [];
|
||||
|
||||
$previous = empty($departments)
|
||||
? '{/prefix}organization/department/list'
|
||||
: '{/prefix}organization/department/list?{?}&id=' . \reset($departments)->getId() . '&ptype=p';
|
||||
? 'organization/department/list'
|
||||
: 'organization/department/list?{?}&id=' . \reset($departments)->getId() . '&ptype=p';
|
||||
$next = empty($departments)
|
||||
? '{/prefix}organization/department/list'
|
||||
: '{/prefix}organization/department/list?{?}&id='
|
||||
? 'organization/department/list'
|
||||
: 'organization/department/list?{?}&id='
|
||||
. ($this->getData('hasMore') ? \end($departments)->getId() : $this->request->getData('id'))
|
||||
. '&ptype=n';
|
||||
|
||||
|
|
@ -90,12 +90,12 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tbody>
|
||||
<?php $c = 0;
|
||||
foreach ($departments as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('{/prefix}organization/department/profile?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('organization/department/profile?{?}&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>
|
||||
<td data-label="<?= $this->getHtml('Parent'); ?>"><a class="content" href="<?= UriFactory::build('{/prefix}organization/department/profile?{?}&id=' . $value->parent->getId()); ?>"><?= $this->printHtml($value->parent->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Name'); ?>"><a class="content" href="<?= UriFactory::build('{/prefix}organization/unit/profile?{?}&id=' . $value->unit->getId()); ?>"><?= $this->printHtml($value->unit->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Parent'); ?>"><a class="content" href="<?= UriFactory::build('organization/department/profile?{?}&id=' . $value->parent->getId()); ?>"><?= $this->printHtml($value->parent->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Name'); ?>"><a class="content" href="<?= UriFactory::build('organization/unit/profile?{?}&id=' . $value->unit->getId()); ?>"><?= $this->printHtml($value->unit->name); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($c === 0) : ?>
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory;
|
|||
*/
|
||||
$positions = $this->getData('positions') ?? [];
|
||||
|
||||
$previous = empty($positions) ? '{/prefix}organization/position/list' : '{/prefix}organization/position/list?{?}&id=' . \reset($positions)->getId() . '&ptype=p';
|
||||
$next = empty($positions) ? '{/prefix}organization/position/list' : '{/prefix}organization/position/list?{?}&id=' . \end($positions)->getId() . '&ptype=n';
|
||||
$previous = empty($positions) ? 'organization/position/list' : 'organization/position/list?{?}&id=' . \reset($positions)->getId() . '&ptype=p';
|
||||
$next = empty($positions) ? 'organization/position/list' : 'organization/position/list?{?}&id=' . \end($positions)->getId() . '&ptype=n';
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
|
|
@ -83,12 +83,12 @@ echo $this->getData('nav')->render(); ?>
|
|||
</label>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($positions as $key => $value) : ++$count;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/position/profile?{?}&id=' . $value->getId()); ?>
|
||||
$url = \phpOMS\Uri\UriFactory::build('organization/position/profile?{?}&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>
|
||||
<td data-label="<?= $this->getHtml('Parent'); ?>"><a class="content" href="<?= UriFactory::build('{/prefix}organization/position/profile?{?}&id=' . $value->parent->getId()); ?>"><?= $this->printHtml($value->parent->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Department'); ?>"><a class="content" href="<?= UriFactory::build('{/prefix}organization/department/profile?{?}&id=' . $value->department->getId()); ?>"><?= $this->printHtml($value->department->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Parent'); ?>"><a class="content" href="<?= UriFactory::build('organization/position/profile?{?}&id=' . $value->parent->getId()); ?>"><?= $this->printHtml($value->parent->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Department'); ?>"><a class="content" href="<?= UriFactory::build('organization/department/profile?{?}&id=' . $value->department->getId()); ?>"><?= $this->printHtml($value->department->name); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($count === 0) : ?>
|
||||
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ use phpOMS\Uri\UriFactory;
|
|||
*/
|
||||
$units = $this->getData('units') ?? [];
|
||||
|
||||
$previous = empty($units) ? '{/prefix}organization/unit/list' : '{/prefix}organization/unit/list?{?}&id=' . \reset($units)->getId() . '&ptype=p';
|
||||
$next = empty($units) ? '{/prefix}organization/unit/list' : '{/prefix}organization/unit/list?{?}&id=' . \end($units)->getId() . '&ptype=n';
|
||||
$previous = empty($units) ? 'organization/unit/list' : 'organization/unit/list?{?}&id=' . \reset($units)->getId() . '&ptype=p';
|
||||
$next = empty($units) ? 'organization/unit/list' : 'organization/unit/list?{?}&id=' . \end($units)->getId() . '&ptype=n';
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
|
|
@ -84,14 +84,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
</label>
|
||||
<tbody>
|
||||
<?php foreach ($units as $key => $value) :
|
||||
$url = UriFactory::build('{/prefix}organization/unit/profile?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('organization/unit/profile?{?}&id=' . $value->getId()); ?>
|
||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_profile'); ?>" class="profile-image" src="<?= $value->image instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $value->image->getPath()); ?>"></a>
|
||||
UriFactory::build('' . $value->image->getPath()); ?>"></a>
|
||||
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Parent'); ?>"><a class="content" href="<?= UriFactory::build('{/prefix}organization/unit/profile?{?}&id=' . $value->parent->getId()); ?>"><?= $this->printHtml($value->parent->name); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Parent'); ?>"><a class="content" href="<?= UriFactory::build('organization/unit/profile?{?}&id=' . $value->parent->getId()); ?>"><?= $this->printHtml($value->parent->name); ?></a>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
src="<?=
|
||||
$unit->image instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $unit->image->getPath()); ?>"
|
||||
UriFactory::build('' . $unit->image->getPath()); ?>"
|
||||
width="40x">
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user