{% extends "base.html" %} {% block title %}Support Request #{{ ticket.id }}{% endblock %} {% block content %}
All My Requests
{# Original request #}
Request #{{ ticket.id }}: {{ ticket.subject }} {% set status_class = {'open': 'warning', 'answered': 'success', 'closed': 'secondary'} %} {% set status_label = {'open': 'Awaiting reply', 'answered': 'Answered', 'closed': 'Closed'} %} {{ status_label.get(ticket.status, ticket.status | capitalize) }}
{% if ticket.facility %} {{ ticket.facility.name }} ·  {% endif %} {{ ticket.created_at.strftime('%b %d, %Y %I:%M %p') }}

{{ ticket.body }}

{# Staff replies #} {% if replies %}
Replies from Support Team
{% for reply in replies %}
{{ reply.author.display_name if reply.author else 'Support Team' }}  · {{ reply.created_at.strftime('%b %d, %Y %I:%M %p') }}
{{ reply.body }}
{% endfor %}
{% else %}
Your request has been received. Our team will reply shortly.
{% endif %} {% if ticket.status != 'closed' %}
Add a Follow-up
{% else %}
This request is closed. Start a new chat if you need further help.
{% endif %}
{% endblock %}