{% extends "admin/layout.html" %} {% block title %}{{ super() }} - {{ page | capitalize }} - {{ admin.name }}{% endblock %} {% block pagetitle %}
/ {{ admin.name | upper }}
{% endblock %} {% block content %} {% for (category, message) in get_flashed_messages(request) %}
{{ message }}
{% endfor %}

{{ admin.name }}

@{{ admin.username }}

{{ admin.role.get('name', admin.role) if admin.role else 'subadmin' | upper }}
{{ admin.role.get('permissions', []) | length if admin.role and admin.role.get('permissions') else 0 }}
Permissions
{{ admin.role.get('priority', 0) if admin.role else 0 }}
Priority

Administrator Overview
Role
{{ admin.role.get('name', 'subadmin') if admin.role else 'subadmin' }}
Priority Level
{{ admin.role.get('priority', 0) if admin.role else 0 }}
Permissions
{{ admin.role.get('permissions', []) | length if admin.role and admin.role.get('permissions') else 0 }}
Account Information
{{ admin.name }}
@{{ admin.username }}
{{ admin.email }}
{{ admin.id }}
{{ admin.role.get('name', 'subadmin') if admin.role else 'subadmin' }}
Active
{{ admin.created_at | default('N/A') }}
{{ admin.updated_at | default('N/A') }}
Quick Actions
Edit Administrator
Profile Settings
{% if not is_self %}
Danger Zone

Permanently delete this administrator. They will no longer be able to access the admin panel. This action cannot be undone.

{% else %}
Self-Management

This is your account. Visit your profile page to manage your settings.

{% endif %}
Security Settings
Reset Password

Set a new password for this administrator. They will need to use this password for their next login.

Account Status
Account Status
Suspend or activate this administrator account
Login History
Last Login
{{ admin.updated_at | default('Unknown') }}
Success
Account Created
{{ admin.created_at | default('Unknown') }}
System
Role Permissions
Assigned Role
{{ admin.role.get('name', 'subadmin') if admin.role else 'subadmin' }}
Priority: {{ admin.role.get('priority', 0) if admin.role else 0 }} | {{ admin.role.get('permissions', []) | length if admin.role and admin.role.get('permissions') else 0 }} permissions
Active
Permissions List
{% if admin.role and admin.role.get('permissions') %}
{% for permission in admin.role.get('permissions', []) %} {{ permission }} {% endfor %}
{% else %}

No specific permissions assigned for this role.

{% endif %}
Recent Activity
Activity Log
Administrator login
{{ admin.updated_at | default('Recently') }}
Success
Account created
{{ admin.created_at | default('N/A') }}
System
Role assigned: {{ admin.role.get('name', 'subadmin') if admin.role else 'subadmin' }}
{{ admin.created_at | default('N/A') }}
Role
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}