{% extends 'layouts/base.html' %} {% load i18n %} {% block title %}{% trans "Inquiry" %} #{{ inquiry.reference_number|truncatechars:15 }} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if source_user %} {% trans "Back to My Inquiries" %} {% else %} {% trans "Back to Inquiries" %} {% endif %}

{{ inquiry.subject }}

{% trans "Inquiry" %} {{ inquiry.get_status_display }} {% if inquiry.priority %} {% if inquiry.priority == 'low' %} {% elif inquiry.priority == 'medium' %} {% elif inquiry.priority == 'high' %} {% else %} {% endif %} {{ inquiry.get_priority_display }} {% endif %}

{{ inquiry.message|truncatewords:30 }}

{{ inquiry.reference_number|truncatechars:15 }} {{ inquiry.created_at|date:"Y-m-d" }}
{% if can_respond %} {% endif %}

{% trans "Inquiry Details" %}

{{ inquiry.message|linebreaks }}

{% if inquiry.response %}

{% trans "Response" %}

{{ inquiry.responded_by.get_full_name|default:inquiry.responded_by.email }} {{ inquiry.response_sent_at|date:"Y-m-d H:i" }}

{{ inquiry.response|linebreaks }}

{% endif %}

{% trans "Timeline" %}

{% trans "Inquiry Created" %}

{% trans "Created by" %} {{ inquiry.created_by.get_full_name|default:inquiry.created_by.email }}

{{ inquiry.created_at|date:"Y-m-d H:i" }}

{% for update in inquiry.updates.all %}

{% trans "Status Changed" %}

{% trans "Status changed to" %} {{ update.new_status|title }}

{{ update.created_at|date:"Y-m-d H:i" }}

{% endfor %} {% if inquiry.response_sent_at %}

{% trans "Response Sent" %}

{% trans "Response sent by" %} {{ inquiry.responded_by.get_full_name|default:inquiry.responded_by.email }}

{{ inquiry.response_sent_at|date:"Y-m-d H:i" }}

{% endif %} {% for note in inquiry.notes.all %}

{% trans "Note Added" %}

{{ note.content|truncatewords:20 }}

{{ note.created_at|date:"Y-m-d H:i" }}

{% endfor %}

{% trans "Contact Information" %}

{% trans "Name" %}

{{ inquiry.contact_name|default:"-" }}

{% trans "Phone" %}

{{ inquiry.contact_phone|default:"-" }}

{% trans "Email" %}

{{ inquiry.contact_email|default:"-" }}

{% trans "Organization" %}

{% trans "Hospital" %}

{{ inquiry.hospital.name }}

{% if inquiry.department %}

{% trans "Department" %}

{{ inquiry.department.name }}

{% endif %}

{% trans "Category" %}

{{ inquiry.get_category_display|default:"-" }}

{% trans "Actions" %}

{% if can_respond %} {% endif %} {% if inquiry.status != 'closed' %} {% trans "Edit Inquiry" %} {% endif %}
{% endblock %}