mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-15 11:20:57 +01:00
c7b45a8edc
#65: When submitter clicks 'Accept' to accept a resolution, nothing happens. #74: issues when updating ticket via views.staff.update_ticket (which is also used by the public views) relating to invalid template context and inconsistent variable naming. #82: Add an option for users to control the number of tickets per page. Thank you to J. Beigel and Christian Klein for these suggestions.
62 lines
2.5 KiB
HTML
62 lines
2.5 KiB
HTML
{% extends "helpdesk/public_base.html" %}{% load i18n %}
|
|
{% block helpdesk_title %}{% trans "View a Ticket" %}{% endblock %}
|
|
|
|
{% block helpdesk_body %}
|
|
|
|
<table width='100%'>
|
|
<tr class='row_tablehead'><td colspan='2'>{{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status }}]</td></tr>
|
|
<tr class='row_columnheads'><th colspan='2'>{% blocktrans with ticket.queue as queue_name %}Queue: {{ queue_name }}{% 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 "Submitter E-Mail" %}</th>
|
|
<td>{{ ticket.submitter_email }}</td>
|
|
</tr>
|
|
|
|
<tr class='row_odd'>
|
|
<th>{% trans "Priority" %}</th>
|
|
<td>{{ ticket.get_priority_display }}</td>
|
|
</tr>
|
|
|
|
<tr class='row_even'>
|
|
<th colspan='2'>{% trans "Description" %}</th>
|
|
</tr>
|
|
<tr class='row_odd'>
|
|
<td colspan='2'>{{ ticket.description|linebreaksbr }}</td>
|
|
</tr>
|
|
|
|
{% if ticket.resolution %}<tr class='row_even'>
|
|
<th colspan='2'>{% trans "Resolution" %}{% ifequal ticket.get_status_display "Resolved" %} <a href='{{ request.get_full_path }}&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_odd'>
|
|
<td colspan='2'>{{ ticket.resolution }}</td>
|
|
</tr>{% endif %}
|
|
|
|
</table>
|
|
|
|
{% if ticket.followup_set.public_followups %}
|
|
<h3>{% trans "Follow-Ups" %}</h3>
|
|
{% load ticket_to_link %}
|
|
{% for followup in ticket.followup_set.public_followups %}
|
|
<div class='followup'>
|
|
<div class='title'>{{ followup.title }} <span class='byline'>{% if followup.user %}by {{ followup.user }}{% endif %} <span title='{{ followup.date|date:"r" }}'>{{ followup.date|timesince }} ago</span></span></div>
|
|
{{ followup.comment|force_escape|num_to_link|linebreaksbr }}
|
|
{% if followup.ticketchange_set.all %}<div class='changes'><ul>
|
|
{% for change in followup.ticketchange_set.all %}
|
|
<li>{% blocktrans %}Changed {{ change.field }} from {{ change.old_value }} to {{ change.new_value }}.{% endblocktrans %}</li>
|
|
{% endfor %}
|
|
{% for attachment in followup.attachment_set.all %}{% if forloop.first %}<div class='attachments'><ul>{% endif %}
|
|
<li><a href='{{ attachment.file.url }}'>{{ attachment.filename }}</a> ({{ attachment.mime_type }}, {{ attachment.size|filesizeformat }})</li>
|
|
{% if forloop.last %}</ul></div>{% endif %}
|
|
{% endfor %}
|
|
</div></ul>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|