mirror of
https://github.com/flextype/flextype.git
synced 2025-08-18 10:51:21 +02:00
feat(admin-plugin): update profile #211
This commit is contained in:
@@ -67,6 +67,11 @@
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li class="absolute bottom-0">
|
||||
<a href="{{ path_for('admin.users.profile') }}" class="navigation__item navigation__item--logo {% if item.item == menu_item %}navigation__item--active{% endif %}">
|
||||
<i class="icon icon--white">{{ icon('fas fa-user-circle') }}</i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="content">
|
||||
|
@@ -1,16 +1,21 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="profile">
|
||||
<i class="fas fa-user-circle"></i><br>
|
||||
{{ tr('admin_username') }}: {{ username }} <br>
|
||||
{{ tr('admin_role') }}: {{ rolename }}<br>
|
||||
<br>
|
||||
<form id="logoutProcess" action="{{ path_for('admin.users.logoutProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
</form>
|
||||
<a class="buttonbtn-default" href="javascript:;"
|
||||
onclick="event.preventDefault();
|
||||
<div class="text-center flex justify-center items-center h-full">
|
||||
<div>
|
||||
<i class="icon icon--4xl">{{ icon('fas fa-user-circle') }}</i>
|
||||
<div class="pt-4 pb-4 text-xl">
|
||||
{{ tr('admin_username') }}:
|
||||
{{ username }}
|
||||
<br>
|
||||
{{ tr('admin_role') }}:
|
||||
{{ rolename }}<br>
|
||||
</div>
|
||||
<form id="logoutProcess" action="{{ path_for('admin.users.logoutProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
</form>
|
||||
<a class="button" href="javascript:;" onclick="event.preventDefault();
|
||||
document.getElementById('logoutProcess').submit();">{{ tr('admin_logout') }}</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user