{% extends DSL_LAYOUT_NAME %} {% load ticket %} {% block django_support_lite_content %}
{{ ticket.title }}
{{ ticket|ticket_state_label }} {% if ticket.status == Status.OPEN and perms.django_support_lite.can_manage %} {{ ticket.priority|ticket_priority_label }} {% endif %}

User
{{ ticket.user.username }}
Date created
{{ ticket.created_at }}
Date updated
{{ ticket.updated_at }}
{% if ticket.status == Status.CLOSE and perms.django_support_lite.can_manage %}
Closed by
{{ ticket.user_close.username }}
{% endif %}
{% if ticket.status == Status.OPEN and perms.django_support_lite.can_manage %} {% endif %}
{% if ticket.status == Status.OPEN %} Close Ticket {% if perms.django_support_lite.can_manage %} Archive Ticket {% endif %} {% else %} {% if ticket.status == Status.CLOSE %} Reopen Ticket {% endif %} {% if ticket.status == Status.ARCHIVE and perms.django_support_lite.can_manage %} Restore Ticket {% endif %} {% endif %}

{% if ticket.status == Status.ARCHIVE %} {% include 'partials/stub.html' with text='Ticket in the archive and is only available to view.' %} {% elif ticket.status == Status.CLOSE %} {% include 'partials/stub.html' with text='The ticket is closed. You have to reopen it in order to continue discussion.' %} {% else %}
{% include 'partials/form.html' with form=form %} {% csrf_token %}
{% endif %} {% if ticket_messages %}
{% for ticket_message in ticket_messages %}
{{ ticket_message.user.username }} {{ ticket_message.created_at }}

{{ ticket_message.text }}

{% for image in ticket_message.image_set.all %} {% endfor %}
{% endfor %}
{% endif %} {% endblock %}