2021-09-09 16:27:09 +02:00
|
|
|
<?php
|
2021-10-04 13:15:47 +02:00
|
|
|
|
2021-09-09 16:27:09 +02:00
|
|
|
use Cake\Routing\Router;
|
|
|
|
?>
|
|
|
|
<div class="btn-group">
|
2021-09-17 13:04:37 +02:00
|
|
|
<a class="nav-link px-2 text-decoration-none profile-button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#" data-bs-offset="10,20">
|
2021-09-09 16:27:09 +02:00
|
|
|
<i class="<?= $this->FontAwesome->getClass('user-circle') ?> fa-lg"></i>
|
|
|
|
</a>
|
2021-09-17 13:04:37 +02:00
|
|
|
<div class="dropdown-menu dropdown-menu-end">
|
2021-10-04 13:15:47 +02:00
|
|
|
<h6 class="dropdown-header">
|
2021-11-24 01:26:29 +01:00
|
|
|
<div class="fw-light"><?= __('Logged in as') ?></div>
|
2021-10-04 13:15:47 +02:00
|
|
|
<div>
|
|
|
|
<?= $this->SocialProvider->getIcon($this->request->getAttribute('identity')) ?>
|
2022-01-19 09:33:57 +01:00
|
|
|
<span class="ms-1 me-3">
|
|
|
|
[<?= h($loggedUser['organisation']['name']) ?>]
|
|
|
|
<strong><?= h($this->request->getAttribute('identity')['username']) ?></strong>
|
|
|
|
</span>
|
2021-10-04 13:15:47 +02:00
|
|
|
</div>
|
|
|
|
</h6>
|
|
|
|
<div class="dropdown-divider"></div>
|
2021-10-18 13:28:26 +02:00
|
|
|
<a class="dropdown-item" href="<?= Router::url(['controller' => 'users', 'action' => 'view', 'plugin' => null, h($this->request->getAttribute('identity')['id'])]) ?>">
|
2021-09-17 13:04:37 +02:00
|
|
|
<i class="me-1 <?= $this->FontAwesome->getClass('user-circle') ?>"></i>
|
2021-09-09 16:27:09 +02:00
|
|
|
<?= __('My Account') ?>
|
|
|
|
</a>
|
2021-10-12 10:16:36 +02:00
|
|
|
<a
|
|
|
|
class="dropdown-item"
|
|
|
|
href="<?= Router::url(['controller' => 'users', 'action' => 'settings', 'plugin' => null, h($this->request->getAttribute('identity')['id'])]) ?>"
|
|
|
|
>
|
2021-09-17 13:04:37 +02:00
|
|
|
<i class="me-1 <?= $this->FontAwesome->getClass('user-cog') ?>"></i>
|
2021-10-18 13:28:26 +02:00
|
|
|
<?= __('Account Settings') ?>
|
2021-09-09 16:27:09 +02:00
|
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
2021-10-04 13:15:47 +02:00
|
|
|
<a class="dropdown-item dropdown-item-outline-danger" href="<?= Router::url(['controller' => 'users', 'action' => 'logout', 'plugin' => null]) ?>">
|
2021-09-17 13:04:37 +02:00
|
|
|
<i class="me-1 <?= $this->FontAwesome->getClass('sign-out-alt') ?>"></i>
|
2021-09-09 16:27:09 +02:00
|
|
|
<?= __('Logout') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
2021-11-24 01:26:29 +01:00
|
|
|
</style>
|