{% extends 'base.html' %} {% block title %}Ticket {{ ticket.ticket_id }} - Optinet Global Links{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ ticket.ticket_id }}
{{ ticket.title }}
{{ ticket.get_priority_display }} {{ ticket.get_status_display }} {% if ticket.is_past_due %} Overdue {% endif %}
{% if user.is_staff %}
{% endif %}

Ticket {{ ticket.ticket_id }}

{{ ticket.title }}

{% if user.is_staff %} Edit {% endif %} Back to Tickets
Ticket Details
{{ ticket.get_priority_display }} {{ ticket.get_status_display }}
Customer: {{ ticket.customer.full_name }}
Phone: {{ ticket.customer.phone }}
Email: {{ ticket.customer.email }}
Created: {{ ticket.created_at|date:"M d, Y H:i" }}
Category: {{ ticket.category.name|default:"Uncategorized" }}
Assigned to: {{ ticket.assigned_person }}
Description:
{{ ticket.description|linebreaksbr }}
{% if attachments or user.is_staff %}
Attachments ({{ attachments.count }})
{% if user.is_staff %} {% endif %}
{% if attachments %}
{% for attachment in attachments %}
{% if attachment.is_image %} {{ attachment.filename }} {% else %}
{% endif %}
{{ attachment.filename }}

{{ attachment.file_size }} • {{ attachment.uploaded_at|date:"M d, Y" }}
by {{ attachment.uploaded_by.username }}

{% if attachment.description %}

{{ attachment.description }}

{% endif %} Download
{% endfor %}
{% else %}

No attachments yet

{% endif %}
{% endif %}
Comments ({{ comments.count }})
{% if comments %} {% for comment in comments %}
{{ comment.user.username }} {% if comment.is_internal %} Internal {% endif %}
{{ comment.created_at|date:"M d, Y H:i" }}
{{ comment.comment|linebreaksbr }}
{% endfor %} {% else %}

No comments yet

{% endif %}
{% csrf_token %}
{{ comment_form.comment }}
{% if user.is_staff %}
{{ comment_form.is_internal }}
{% endif %}
Ticket Information
Ticket Number:
{{ ticket.ticket_id }}
Status:
{{ ticket.get_status_display }} {% if user.is_staff %}
{% endif %}
Priority:
{{ ticket.get_priority_display }}
Last Updated:
{{ ticket.updated_at|date:"M d, Y H:i" }}
{% if ticket.resolved_at %}
Resolved:
{{ ticket.resolved_at|date:"M d, Y H:i" }}
{% endif %}
{% if user.is_staff %} {% endif %} {% endblock %} {% block extra_js %} {% endblock %}