{% extends "base.html" %} {% block title %}Ticket Details – Echo{% endblock %} {% block content %}

Ticket Details

{% set role_href = (user.role | lower) if user and user.role else 'end_user' %} Back to Dashboard {% if not_found %}
Ticket not found.
{% else %}
{{ ticket.title }}
Created: {{ ticket.created_at.strftime('%b %d, %I:%M %p') }}
Updated: {{ ticket.updated_at.strftime('%b %d, %I:%M %p') }}
{{ ticket.description }}
Category
{{ ticket.category.value if ticket.category else 'general' }}
Priority
{{ ticket.priority.value if ticket.priority else 'medium' }}
Status
{{ ticket.status.value if ticket.status else 'open' }}
Requester
{% set requester_display = ticket.requester_name or (ticket.requester.full_name if ticket.requester and ticket.requester.full_name else (ticket.requester.email if ticket.requester else '')) %}
{{ requester_display or 'N/A' }}
Assignee
{{ ticket.assignee_id or 'Unassigned' }}
{# IT staff suggested fix form #} {% set role = (user.role | lower) if user and user.role else '' %}
{% set role = (user.role | lower) if user and user.role else '' %} {% if role in ['admin', 'it_agent'] %} {% if ticket.status.value == 'open' %}

Recommend a Resolution

{% else %}

Recommended Resolutions

{% endif %} {% else %}

Agent Suggestions

{% endif %} {% if message %}
{{ message }}
{% endif %} {% if error %}
{{ error }}
{% endif %} {% if role in ['admin', 'it_agent'] %} {% if ticket.status.value == 'open' %}
{% endif %} {% endif %} {% if suggestions and suggestions|length > 0 %} {% else %}

No suggestions yet.

{% endif %}
{% endif %}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}