mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-16 07:18:41 +00:00
Went through todos
This commit is contained in:
parent
e7f6048f65
commit
48ae5bef3b
|
|
@ -20,7 +20,7 @@ use phpOMS\Account\PermissionType;
|
||||||
use phpOMS\Router\RouteVerb;
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/view$' => [
|
'^.*/profile(\?.*|$)$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
|
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
|
||||||
'verb' => RouteVerb::PUT,
|
'verb' => RouteVerb::PUT,
|
||||||
|
|
@ -34,7 +34,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'^.*/view/settings/localization(\?.*|$)' => [
|
'^.*/profile/settings/localization(\?.*|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet',
|
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet',
|
||||||
'verb' => RouteVerb::SET,
|
'verb' => RouteVerb::SET,
|
||||||
|
|
@ -47,7 +47,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/view/settings/password(\?.*|$)' => [
|
'^.*/profile/settings/password(\?.*|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountPasswordSet',
|
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountPasswordSet',
|
||||||
'verb' => RouteVerb::SET,
|
'verb' => RouteVerb::SET,
|
||||||
|
|
@ -60,7 +60,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/view/settings/image(\?.*|$)' => [
|
'^.*/profile/settings/image(\?.*|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Profile\Controller\ApiController:apiSettingsAccountImageSet',
|
'dest' => '\Modules\Profile\Controller\ApiController:apiSettingsAccountImageSet',
|
||||||
'verb' => RouteVerb::SET,
|
'verb' => RouteVerb::SET,
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,9 @@ echo $this->data['nav']->render();
|
||||||
src="<?= $profile->image->id === 0
|
src="<?= $profile->image->id === 0
|
||||||
? UriFactory::build($this->data['defaultImage']->getPath())
|
? UriFactory::build($this->data['defaultImage']->getPath())
|
||||||
: UriFactory::build($profile->image->getPath()); ?>"
|
: UriFactory::build($profile->image->getPath()); ?>"
|
||||||
width="100px"></div>
|
width="100px" style="margin-bottom: .5rem;"></div>
|
||||||
<?php if ($this->request->header->account === $profile->account->id) : ?>
|
<?php if ($this->request->header->account === $profile->account->id) : ?>
|
||||||
<div class="cT"><a id="iProfileUploadButton" href="#upload" data-action='[
|
<div class="cT"><a id="iProfileUploadButton" class="content" href="#upload" data-action='[
|
||||||
{"listener": "click", "key": 1, "action": [
|
{"listener": "click", "key": 1, "action": [
|
||||||
{"key": 1, "type": "event.prevent"},
|
{"key": 1, "type": "event.prevent"},
|
||||||
{"key": 2, "type": "dom.click", "selector": "#iProfileUpload"}
|
{"key": 2, "type": "dom.click", "selector": "#iProfileUpload"}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user