{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% trans "Department Response" %} - {{ inquiry.reference_number }} - PX360{% endblock %} {% block content %}
{% trans "Back to Inquiry" %}

{% trans "Submit Department Response" %}

{% if not request.user.is_department_respondent %}

{{ inquiry.reference_number }} - {{ inquiry.subject }}

{% endif %}

{% trans "Original Inquiry" %}

{{ inquiry.message|linebreaks }}

{% if not request.user.is_department_respondent and inquiry.category %}
{{ inquiry.get_category_display }}
{% endif %}
{% if not request.user.is_department_respondent %} {% if inquiry.department_response_en or inquiry.department_response_ar %}

{% trans "Existing Department Response" %}

{% if inquiry.department_response_en %}

{{ inquiry.department_response_en|linebreaks }}

{% endif %} {% if inquiry.department_response_ar %}

{{ inquiry.department_response_ar|linebreaks }}

{% endif %}

{% trans "Submitted by" %} {{ inquiry.department_responded_by.get_full_name|default:"-" }} {% trans "on" %} {{ inquiry.department_responded_at|date:"Y-m-d H:i"|default:"-" }}

{% endif %} {% endif %} {% if not request.user.is_department_respondent %} {% if inquiry.short_description_en or inquiry.short_description_ar or inquiry.ai_brief_en or inquiry.ai_brief_ar %}

{% trans "AI Summary" %}

{% trans "Editable" %}
{% if inquiry.short_description_en or inquiry.ai_brief_en %}

English

{% if inquiry.short_description_en %}{{ inquiry.short_description_en }}{% elif inquiry.ai_brief_en %}{{ inquiry.ai_brief_en }}{% endif %}
{% endif %} {% if inquiry.short_description_ar or inquiry.ai_brief_ar %}

العربية

{% if inquiry.short_description_ar %}{{ inquiry.short_description_ar }}{% elif inquiry.ai_brief_ar %}{{ inquiry.ai_brief_ar }}{% endif %}
{% endif %}

{% trans "This AI-generated summary provides context. You can use it as a reference when writing your response." %}

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

{% trans "Your Response" %}

{% trans "At least one language is required. This response will be recorded as the department's official response." %}

{% trans "Cancel" %}
{% endblock %}