{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% trans "Manager Review" %} - {{ complaint.reference_number }} - PX360{% endblock %} {% block content %}
{% trans "Departments" %} {{ department.get_localized_name }} {% trans "Manager Review" %}

{% trans "Review Champion Response" %}

{{ complaint.reference_number }} · {{ department.get_localized_name }}

{% trans "Complaint Details" %}

{{ complaint.get_status_display }} {% if complaint.severity %} {{ complaint.get_severity_display }} {% endif %}

{% trans "Reference" %}

{{ complaint.reference_number }}

{% trans "Patient" %}

{{ complaint.patient_name|default:complaint.contact_name|default:"—" }}

{% trans "Incident Date" %}

{{ complaint.incident_date|date:"M d, Y"|default:"—" }}

{% trans "Department" %}

{{ complaint.department|default:"—" }}

{% if complaint.involved_staff.exists %}

{% trans "Accused Staff" %}

{% for inv_staff in complaint.involved_staff.all %} {% if inv_staff.role == 'accused' or inv_staff.role == 'Accused/Involved' %} {{ inv_staff.staff.get_full_name }} {% endif %} {% endfor %}
{% endif %} {% if complaint.title %}

{% trans "Title" %}

{{ complaint.title }}

{% endif %} {% if complaint.description %}

{% trans "Description" %}

{{ complaint.description }}

{% endif %}
{% if investigation and investigation_staff_data %}

{% trans "Investigation Questions & Answers" %}

{% for sd in investigation_staff_data %}
{{ sd.staff.first_name|first|default:"?" }}{{ sd.staff.last_name|first|default:"" }}
{{ sd.staff.get_full_name }}
{% if sd.is_completed %} {% trans "Responded" %} {% else %} {% trans "Pending" %} {% endif %}
{% if sd.is_completed %}
{% for pair in sd.qa_pairs %}

{% trans "Q" %}{{ forloop.counter }}

{{ pair.question.question_text }}

{% trans "Answer" %}

{{ pair.answer|default:"—" }}

{% endfor %}
{% else %}

{% trans "This staff member has not responded yet." %}

{% endif %}
{% endfor %}
{% endif %}

{% trans "Champion Response" %}

{% if involved_dept.response_notes_en %}

{% trans "English" %}

{{ involved_dept.response_notes_en }}

{% endif %} {% if involved_dept.response_notes_ar %}

{% trans "Arabic" %}

{{ involved_dept.response_notes_ar }}

{% endif %} {% if involved_dept.response_submitted_at %}

{% trans "Submitted" %}: {{ involved_dept.response_submitted_at|date:"Y-m-d H:i" }}

{% endif %}
{% csrf_token %} {% if questions %}

{% trans "Review Questions" %}

{% for q in questions %}
{% if q.question_type == 'text' %} {% elif q.question_type == 'textarea' %} {% elif q.question_type == 'yes_no' %}
{% elif q.question_type == 'rating' %}
{% for i in "12345" %} {% endfor %}
{% elif q.question_type == 'multiple_choice' %}
{% for choice in q.choices_json %} {% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% trans "Cancel" %}
{% endblock %}