mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-05 18:58:40 +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;
|
||||
|
||||
return [
|
||||
'^.*/view$' => [
|
||||
'^.*/profile(\?.*|$)$' => [
|
||||
[
|
||||
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
|
||||
'verb' => RouteVerb::PUT,
|
||||
|
|
@ -34,7 +34,7 @@ return [
|
|||
],
|
||||
],
|
||||
|
||||
'^.*/view/settings/localization(\?.*|$)' => [
|
||||
'^.*/profile/settings/localization(\?.*|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet',
|
||||
'verb' => RouteVerb::SET,
|
||||
|
|
@ -47,7 +47,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/view/settings/password(\?.*|$)' => [
|
||||
'^.*/profile/settings/password(\?.*|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountPasswordSet',
|
||||
'verb' => RouteVerb::SET,
|
||||
|
|
@ -60,7 +60,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/view/settings/image(\?.*|$)' => [
|
||||
'^.*/profile/settings/image(\?.*|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\Profile\Controller\ApiController:apiSettingsAccountImageSet',
|
||||
'verb' => RouteVerb::SET,
|
||||
|
|
|
|||
|
|
@ -63,9 +63,9 @@ echo $this->data['nav']->render();
|
|||
src="<?= $profile->image->id === 0
|
||||
? UriFactory::build($this->data['defaultImage']->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) : ?>
|
||||
<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": [
|
||||
{"key": 1, "type": "event.prevent"},
|
||||
{"key": 2, "type": "dom.click", "selector": "#iProfileUpload"}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user