mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-01 03:29:41 +01:00
53 lines
2.7 KiB
HTML
53 lines
2.7 KiB
HTML
{% load i18n %}
|
|
<table width='100%'>
|
|
<tr class='row_tablehead'><td>{{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status }}]</td><td align='right'><a href='{% url helpdesk_edit ticket.id %}'><img src='{{ MEDIA_URL }}helpdesk/buttons/edit.png' alt='Edit' title='Edit' width='60' height='15' /></a><a href='{% url helpdesk_delete ticket.id %}'><img src='{{ MEDIA_URL }}helpdesk/buttons/delete.png' alt='Delete' title='Delete' width='60' height='15' /></a>{% if ticket.on_hold %}<a href='unhold/'>{% trans "Unhold" %}</a>{% else %}<a href='hold/'>{% trans "Hold" %}</a>{% endif %}</td></tr>
|
|
<tr class='row_columnheads'><th colspan='2'>{% blocktrans with ticket.queue as queue %}Queue: {{ queue }}{% endblocktrans %}</th></tr>
|
|
|
|
<tr class='row_odd'>
|
|
<th>{% trans "Submitted On" %}</th>
|
|
<td>{{ ticket.created|date:"r" }} ({{ ticket.created|timesince }} ago)</td>
|
|
</tr>
|
|
|
|
<tr class='row_even'>
|
|
<th>{% trans "Assigned To" %}</th>
|
|
<td>{{ ticket.get_assigned_to }}{% ifequal ticket.get_assigned_to _('Unassigned') %} <strong><a href='?take'><span class='button button_take'>{% trans "Take" %}</span></a></strong>{% endifequal %}</td>
|
|
</tr>
|
|
|
|
<tr class='row_odd'>
|
|
<th>{% trans "Submitter E-Mail" %}</th>
|
|
<td>{{ ticket.submitter_email }}{% if user.is_superuser %} <strong><a href='{% url helpdesk_email_ignore_add %}?email={{ ticket.submitter_email }}'>{% trans "Ignore" %}</a></strong>{% endif %}</td>
|
|
</tr>
|
|
|
|
<tr class='row_even'>
|
|
<th>{% trans "Priority" %}</th>
|
|
<td>{{ ticket.get_priority_display }}</td>
|
|
</tr>
|
|
|
|
<tr class='row_odd'>
|
|
<th>{% trans "Copies To" %}</th>
|
|
<td>{% for ticketcc in ticket.ticketcc_set.all %}{{ ticketcc.display }}{% if not forloop.last %}, {% endif %}{% endfor %} <strong><a href='{% url helpdesk_ticket_cc ticket.id %}'>{% trans "Manage" %}</a></strong></td>
|
|
</tr>
|
|
|
|
{% if tags_enabled %}
|
|
<tr class='row_even'>
|
|
<th>{% trans "Tags" %}</th>
|
|
<td>{{ ticket.tags }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
|
|
<tr class='row_even'>
|
|
<tr class='row_{% if tags_enabled %}odd{% else %}even{% endif %}'>
|
|
<th colspan='2'>{% trans "Description" %}</th>
|
|
</tr>
|
|
<tr class='row_{% if tags_enabled %}even{% else %}odd{% endif %}'>
|
|
<td colspan='2'>{{ ticket.description|force_escape|linebreaksbr }}</td>
|
|
</tr>
|
|
|
|
{% if ticket.resolution %}<tr class='row_{% if tags_enabled %}odd{% else %}even{% endif %}'>
|
|
<th colspan='2'>{% trans "Resolution" %}{% ifequal ticket.get_status_display "Resolved" %} <a href='?close'><img src='{{ MEDIA_URL }}helpdesk/buttons/accept.png' alt='{% trans "Accept" %}' title='{% trans "Accept and Close" %}' width='60' height='15' /></a>{% endifequal %}</th>
|
|
</tr>
|
|
<tr class='row_{% if tags_enabled %}even{% else %}odd{% endif %}'>
|
|
<td colspan='2'>{{ ticket.resolution|force_escape }}</td>
|
|
</tr>{% endif %}
|
|
|
|
</table> |