{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% trans page_title %}{% endblock %} {% block content %}
{% trans "Back to Provisional Users" %}

{% trans "Onboarding Progress" %}

{{ user.email }}

{% trans "Overall Progress" %}
{% trans "Required Items" %} {{ acknowledged_count }} / {{ total_items }}
{{ progress_percentage }}%
{% if progress_percentage == 100 %}
{% trans "All required acknowledgements completed!" %}
{% else %}
{{ remaining_count }} {% trans "items remaining" %}
{% endif %}
{% trans "User Details" %}
{% trans "Name:" %} {{ user.get_full_name }}
{% trans "Email:" %} {{ user.email }}
{% trans "Hospital:" %} {{ user.hospital.name|default:"-" }}
{% trans "Department:" %} {{ user.department.name|default:"-" }}
{% trans "Roles:" %} {% for group in user.groups.all %} {{ group.name }} {% empty %} - {% endfor %}
{% trans "Acknowledgement Checklist" %}
{% for checklist_item in checklist_items %} {% empty %} {% endfor %}
{% trans "Status" %} {% trans "Item" %} {% trans "Role" %} {% trans "Required" %} {% trans "Acknowledged At" %}
{% if checklist_item.acknowledged_at %} {% else %} {% endif %} {{ checklist_item.item.text_en }} {% if checklist_item.item.description_en %}

{{ checklist_item.item.description_en }}

{% endif %}
{% if checklist_item.item.role %}{{ checklist_item.item.role }}{% else %}All Roles{% endif %} {% if checklist_item.item.is_required %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %} {% if checklist_item.acknowledged_at %} {{ checklist_item.acknowledged_at|date:"M d, Y H:i" }} {% else %} - {% endif %}

{% trans "No checklist items found for this user's role" %}

{% trans "Activity Log" %}
{% for log in logs %}
{{ log.get_event_type_display }}
{{ log.created_at|date:"M d, Y H:i" }}

{{ log.description }}

{% if log.ip_address %} {{ log.ip_address }} {% endif %}
{% empty %}

{% trans "No activity recorded yet" %}

{% endfor %}
{% comment %} Template filter to get event type icon {% endcomment %} {% endblock %}