{% extends "layouts/source_user_base.html" %} {% load i18n %} {% block title %}{% trans "Source User Dashboard" %} - {{ source.name_en }} - PX360{% endblock %} {% block content %}
{% trans "Welcome" %}, {{ request.user.get_full_name }}! {% trans "You're managing feedback from this source." %}
{% trans "Total Complaints" %}
{{ total_complaints }}
{% trans "Open Complaints" %}
{{ open_complaints }}
{% trans "Total Inquiries" %}
{{ total_inquiries }}
{% trans "Open Inquiries" %}
{{ open_inquiries }}
| {% trans "ID" %} | {% trans "Title" %} | {% trans "Patient" %} | {% trans "Category" %} | {% trans "Status" %} | {% trans "Priority" %} | {% trans "Created" %} |
|---|---|---|---|---|---|---|
| {{ complaint.reference_number|default:complaint.id|truncatechars:12 }} | {{ complaint.title|truncatechars:40 }} | {{ complaint.patient.get_full_name|default:"-" }} | {{ complaint.category|default:"-" }} | {% if complaint.status == 'open' %} {% trans "Open" %} {% elif complaint.status == 'in_progress' %} {% trans "In Progress" %} {% elif complaint.status == 'resolved' %} {% trans "Resolved" %} {% else %} {{ complaint.get_status_display }} {% endif %} | {% if complaint.priority == 'high' %} {% trans "High" %} {% elif complaint.priority == 'medium' %} {% trans "Medium" %} {% else %} {% trans "Low" %} {% endif %} | {{ complaint.created_at|date:"Y-m-d" }} |
{% trans "No complaints found from this source." %}
| {% trans "ID" %} | {% trans "Subject" %} | {% trans "From" %} | {% trans "Status" %} | {% trans "Created" %} |
|---|---|---|---|---|
| {{ inquiry.reference_number|default:inquiry.id|truncatechars:12 }} | {{ inquiry.subject|truncatechars:40 }} | {{ inquiry.name }} | {% if inquiry.status == 'open' %} {% trans "Open" %} {% elif inquiry.status == 'in_progress' %} {% trans "In Progress" %} {% elif inquiry.status == 'resolved' %} {% trans "Resolved" %} {% else %} {{ inquiry.get_status_display }} {% endif %} | {{ inquiry.created_at|date:"Y-m-d" }} |
{% trans "No inquiries found from this source." %}