{% load i18n %}

{% trans "Resolution" %}

{% if complaint.status == 'resolved' or complaint.status == 'closed' %}

{% trans "Complaint Resolved" %}

{% if complaint.resolution %}

{{ complaint.resolution|linebreaks }}

{% endif %} {% if complaint.resolution_outcome %}

{% trans "Resolution Outcome" %}

{% if complaint.resolution_outcome == 'patient' %} {% trans "Patient" %} {% elif complaint.resolution_outcome == 'hospital' %} {% trans "Hospital" %} {% else %} {% trans "Other" %} {% endif %} {% if complaint.resolution_outcome == 'other' and complaint.resolution_outcome_other %} ({{ complaint.resolution_outcome_other }}) {% endif %}
{% endif %}

{% trans "Resolved by:" %} {{ complaint.resolved_by.get_full_name|default:"-" }}

{% trans "Resolved at:" %} {{ complaint.resolved_at|date:"M d, Y H:i"|default:"-" }}

{% else %}

{% trans "Pending Resolution" %}

{% trans "This complaint has not been resolved yet." %}

{% if can_edit and complaint.is_active_status %} {% if complaint.assigned_to == current_user %}
{% csrf_token %} {% if explanations %}
{% endif %}

{% trans "Who was in wrong / who was in right?" %}

{% else %}

{% trans "Activate this complaint to resolve it" %}

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