{% extends "base.html" %} {% load static %} {% block title %}{{ user_profile.get_full_name }} - User Details - {{ block.super }}{% endblock %} {% block css %} {% endblock %} {% block content %}
{% if user_profile.profile_picture %} {{ user_profile.get_full_name }} {% else %}
{% endif %}

{{ user_profile.get_full_name }}

{{ user_profile.role|title }} • {{ user_profile.department|default:"No Department" }}

{% if user_profile.is_active %} Active {% else %} Inactive {% endif %} {% if user_profile.is_approved %} Approved {% else %} Pending Approval {% endif %} {% if user_profile.two_factor_enabled %} 2FA Enabled {% endif %}
Personal Information
Employee ID {{ user_profile.employee_id|default:"Not set" }}
Email {{ user_profile.email }}
Phone {{ user_profile.phone_number|default:"Not provided" }}
Mobile {{ user_profile.mobile_number|default:"Not provided" }}
Date of Birth {{ user_profile.date_of_birth|date:"M d, Y"|default:"Not provided" }}
Gender {{ user_profile.get_gender_display|default:"Not specified" }}
Professional Information
Role {{ user_profile.get_role_display }}
Department {{ user_profile.department|default:"Not assigned" }}
License Number {{ user_profile.license_number|default:"Not provided" }}
Specialization {{ user_profile.specialization|default:"Not specified" }}
Date Joined {{ user_profile.date_joined|date:"M d, Y" }}
Last Login {{ user_profile.last_login|date:"M d, Y H:i"|default:"Never" }}
Active Sessions {{ active_sessions.count }}
{% if active_sessions %} {% for session in active_sessions %}
{{ session.device_type|title }} • {{ session.browser_name }}
{{ session.ip_address }} {{ session.location|default:"Unknown location" }}
Started: {{ session.created_at|date:"M d, Y H:i" }} Last activity: {{ session.last_activity_at|date:"M d, Y H:i" }}
{% if session.is_current_session %} Current {% else %} {% endif %}
{% endfor %} {% else %}

No active sessions

{% endif %}
Two-Factor Authentication {{ two_factor_devices.count }}
{% if two_factor_devices %} {% for device in two_factor_devices %}
{{ device.name }}
{{ device.get_device_type_display }} {% if device.phone_number %} {{ device.phone_number }} {% endif %}
Added: {{ device.created_at|date:"M d, Y H:i" }} Last used: {{ device.last_used_at|date:"M d, Y H:i"|default:"Never" }}
{% if device.is_verified %} Verified {% else %} Pending {% endif %}
{% endfor %} {% else %}

No two-factor devices configured

{% endif %}
Recent Activity
Loading...
{% endblock %} {% block js %} {% endblock %}