You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% extends 'base_help.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load static %}
|
|
|
|
|
|
|
|
{% block pagetitle %}{% trans 'Tickets' %}{% endblock %}
|
|
|
|
{% block helpdesk_body %}
|
|
|
|
|
|
|
|
{% if tickets %}
|
|
|
|
<table class="admin-list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>#{% trans 'ID' %}</td>
|
|
|
|
<td>{% trans 'Subject' %}</td>
|
|
|
|
<td>{% trans 'Status' %}</td>
|
|
|
|
{% if not single_user %}
|
|
|
|
<td>{% trans 'User' %}</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for ticket in tickets %}
|
|
|
|
<tr>
|
|
|
|
<td>#{{ticket.id}}</td>
|
|
|
|
<td><a href="{% url 'tickets:view' ticket.id %}">{{ ticket.subject }}</a></td>
|
|
|
|
<td>{{ ticket.status_text }}</td>
|
|
|
|
{% if not single_user %}
|
|
|
|
{% if ticket.user %}
|
|
|
|
<td><a href="{% url 'admin:auth_user_change' ticket.user.id %}">
|
|
|
|
{{ticket.user.username}}
|
|
|
|
</a></td>
|
|
|
|
{% else %}
|
|
|
|
<td>-</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p class="pages">
|
|
|
|
{% if tickets.has_previous %}
|
|
|
|
<a href="?{{ filter }}&page={{ tickets.previous_page_number }}"><</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="?{{ filter }}&page={{ tickets.number }}">{{ tickets.number }}</a>
|
|
|
|
{% if tickets.has_next %}
|
|
|
|
<a href="?{{ filter }}&page={{ tickets.next_page_number }}">></a>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p>{% trans 'No ticket to show.' %}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|