{% load i18n %}

{% trans "Involved Staff" %}

{% if can_edit %} {% trans "Add Staff" %} {% endif %}
{% if complaint.involved_staff.exists %}
{% for staff_inv in complaint.involved_staff.all %}

{{ staff_inv.staff }}

{{ staff_inv.get_role_display }}
{% if staff_inv.staff.department %}
{{ staff_inv.staff.department.name }}
{% endif %} {% if staff_inv.notes %}

{{ staff_inv.notes }}

{% endif %} {% if staff_inv.explanation_received %}
{% trans "Explanation Submitted" %} {{ staff_inv.explanation_received_at|date:"M d, Y H:i" }}
{% if staff_inv.explanation %}

{{ staff_inv.explanation }}

{% endif %}
{% elif staff_inv.explanation_requested %}
{% trans "Explanation Requested" %} {{ staff_inv.explanation_requested_at|date:"M d, Y" }}
{% endif %}
{% if can_edit %}
{% if not staff_inv.explanation_received %}
{% csrf_token %}
{% endif %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}

{% trans "No staff members involved yet" %}

{% if can_edit %} {% trans "Add First Staff" %} {% endif %}
{% endif %}