mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-09 20:38:41 +00:00
fix urls
This commit is contained in:
parent
01fbc43de8
commit
e030a93927
|
|
@ -5,7 +5,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Profiles",
|
||||
"uri": "{/prefix}profile/list",
|
||||
"uri": "{/lang}/{/app}/profile/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}profile/list",
|
||||
"uri": "{/lang}/{/app}/profile/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"type": 5,
|
||||
"subtype": 1,
|
||||
"name": "Profile",
|
||||
"uri": "{/prefix}profile/single/front?{?}",
|
||||
"uri": "{/lang}/{/app}/profile/single/front?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
"type": 5,
|
||||
"subtype": 1,
|
||||
"name": "Settings",
|
||||
"uri": "{/prefix}profile/single/settings?{?}",
|
||||
"uri": "{/lang}/{/app}/profile/single/settings?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 999,
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Overview",
|
||||
"uri": "{/prefix}admin/module/settings?{?}",
|
||||
"uri": "{/lang}/{/app}/admin/module/settings?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Settings",
|
||||
"uri": "{/prefix}admin/module/settings/profile/settings?{?}",
|
||||
"uri": "{/lang}/{/app}/admin/module/settings/profile/settings?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}admin/module/settings/profile/create?{?}",
|
||||
"uri": "{/lang}/{/app}/admin/module/settings/profile/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
|
|
|
|||
|
|
@ -6,9 +6,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('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/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/0"}, "position": -1},
|
||||
{"key": 4, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"},
|
||||
{"key": 4, "type": "message.request", "uri": "<?= \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/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/0"}, "position": -1}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ use phpOMS\Uri\UriFactory;
|
|||
*/
|
||||
$accounts = $this->getData('accounts') ?? [];
|
||||
|
||||
$previous = empty($accounts) ? 'profile/list' : 'profile/list?{?}&id=' . \reset($accounts)->getId() . '&ptype=p';
|
||||
$next = empty($accounts) ? 'profile/list' : 'profile/list?{?}&id=' . \end($accounts)->getId() . '&ptype=n';
|
||||
$previous = empty($accounts) ? '{/lang}/{/app}profile/list' : '{/lang}/{/app}/profile/list?{?}&id=' . \reset($accounts)->getId() . '&ptype=p';
|
||||
$next = empty($accounts) ? '{/lang}/{/app}profile/list' : '{/lang}/{/app}/profile/list?{?}&id=' . \end($accounts)->getId() . '&ptype=n';
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
|
@ -60,14 +60,14 @@ $next = empty($accounts) ? 'profile/list' : 'profile/list?{?}&id=' . \end($a
|
|||
<tbody>
|
||||
<?php $count = 0;
|
||||
foreach ($accounts as $key => $account) : ++$count;
|
||||
$url = UriFactory::build('profile/single?{?}&id=' . $account->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/profile/single?{?}&id=' . $account->getId());
|
||||
?>
|
||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_user'); ?>" width="30" loading="lazy" class="profile-image"
|
||||
src="<?=
|
||||
$account->image instanceof NullMedia
|
||||
? UriFactory::build('' . $this->getData('defaultImage')->getPath())
|
||||
: UriFactory::build('' . $account->image->getPath()); ?>"></a>
|
||||
? UriFactory::build($this->getData('defaultImage')->getPath())
|
||||
: UriFactory::build($account->image->getPath()); ?>"></a>
|
||||
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($account->account->name3 . ' ' . $account->account->name2 . ' ' . $account->account->name1); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Activity'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($account->account->getLastActive()->format('Y-m-d')); ?></a>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ echo $this->getData('nav')->render();
|
|||
itemprop="logo" loading="lazy"
|
||||
src="<?=
|
||||
$profile->image instanceof NullMedia
|
||||
? UriFactory::build('' . $this->getData('defaultImage')->getPath())
|
||||
: UriFactory::build('' . $profile->image->getPath()); ?>"
|
||||
? UriFactory::build( $this->getData('defaultImage')->getPath())
|
||||
: UriFactory::build( $profile->image->getPath()); ?>"
|
||||
width="100px"></div>
|
||||
<?php if ($this->request->header->account === $account->getId()) : ?>
|
||||
<div><a id="iProfileUploadButton" href="#upload" data-action='[
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user