diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index eb1c4b7..e158560 100644 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -1,5 +1,7 @@ [ + [ + 'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet', + 'verb' => RouteVerb::SET, + 'permission' => [ + 'module' => AdminApiController::MODULE_NAME, + 'type' => PermissionType::MODIFY, + 'state' => AdminPermissionState::ACCOUNT_SETTINGS, + ], + ], + ], ]; diff --git a/Models/PermissionState.php b/Models/PermissionState.php index f383b65..3591007 100644 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -27,4 +27,5 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionState extends Enum { public const PROFILE = 1; + public const PROFILE_SETTINGS = 2; } diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php index badc032..7fb8c3a 100644 --- a/Theme/Backend/profile-list.tpl.php +++ b/Theme/Backend/profile-list.tpl.php @@ -13,6 +13,7 @@ declare(strict_types=1); use phpOMS\Uri\UriFactory; +use Modules\Media\Models\NullMedia; /** * @var \phpOMS\Views\View $this @@ -30,14 +31,18 @@ $next = empty($accounts) ? '{/prefix}profile/list' : '{/prefix}profile/list?
| = $this->getHtml('ID', '0', '0'); ?> + | = $this->getHtml('Name') ?> | = $this->getHtml('Activity') ?> | |||||||||||||
| = $this->printHtml($account->getId()); ?> + |
| = $this->printHtml($account->getAccount()->getName3() . ' ' . $account->getAccount()->getName2() . ' ' . $account->getAccount()->getName1()); ?> | = $this->printHtml($account->getAccount()->getLastActive()->format('Y-m-d')); ?>
diff --git a/Theme/Backend/profile-single.tpl.php b/Theme/Backend/profile-single.tpl.php
index d54baae..122f44d 100644
--- a/Theme/Backend/profile-single.tpl.php
+++ b/Theme/Backend/profile-single.tpl.php
@@ -57,33 +57,30 @@ echo $this->getData('nav')->render();
-
@@ -160,7 +160,7 @@ echo $this->getData('nav')->render();
- getName3()) || !empty($account->getName2())) : ?>
-
- = $this->printHtml(empty($account->getName3()) ? $account->getName2() : $account->getName3()); ?>,
-
-
- = $this->printHtml($account->getName1()); ?>
-
-
-
-
-
-
+
+ getName3()) || !empty($account->getName2())) : ?>
+
+ = $this->printHtml(empty($account->getName3()) ? $account->getName2() : $account->getName3()); ?>,
+
+
+ = $this->printHtml($account->getName1()); ?>
+
+
+
+
+
+ request->getHeader()->getAccount() === $account->getId()) : ?>
+
+
+
-
= $this->getHtml('Weight'); ?>
@@ -274,37 +276,37 @@ echo $this->getData('nav')->render();
| ||||||||||||