2008-05-07 11:04:18 +02:00
{% extends "helpdesk/public_base.html" %}{% load i18n %}
{% block helpdesk_title %}{% trans "View a Ticket" %}{% endblock %}
2008-01-16 01:26:24 +01:00
{% block helpdesk_body %}
< table width = '100%' >
2008-01-16 06:00:58 +01:00
< tr class = 'row_tablehead' > < td colspan = '2' > {{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status }}]< / td > < / tr >
2008-08-18 23:29:31 +02:00
< tr class = 'row_columnheads' > < th colspan = '2' > {% blocktrans with ticket.queue as queue_name %}Queue: {{ queue_name }}{% endblocktrans %}< / th > < / tr >
2008-01-16 01:26:24 +01:00
< tr class = 'row_odd' >
2008-05-07 11:04:18 +02:00
< th > {% trans "Submitted On" %}< / th >
2008-01-16 01:26:24 +01:00
< td > {{ ticket.created|date:"r" }} ({{ ticket.created|timesince }} ago)< / td >
< / tr >
< tr class = 'row_even' >
2008-05-07 11:04:18 +02:00
< th > {% trans "Submitter E-Mail" %}< / th >
2008-01-16 01:26:24 +01:00
< td > {{ ticket.submitter_email }}< / td >
< / tr >
< tr class = 'row_odd' >
2008-05-07 11:04:18 +02:00
< th > {% trans "Priority" %}< / th >
2008-01-16 01:26:24 +01:00
< td > {{ ticket.get_priority_display }}< / td >
< / tr >
2009-09-09 11:11:05 +02:00
{% if tags_enabled %}
2008-01-16 01:26:24 +01:00
< tr class = 'row_even' >
2009-09-09 11:11:05 +02:00
< th > {% trans "Tags" %}< / th >
< td > {{ ticket.tags }}< / td >
< / tr >
{% endif %}
< tr class = 'row_{% if tags_enabled %}odd{% else %}even{% endif %}' >
2008-05-07 11:04:18 +02:00
< th colspan = '2' > {% trans "Description" %}< / th >
2008-01-16 01:26:24 +01:00
< / tr >
2009-09-09 11:11:05 +02:00
< tr class = 'row_{% if tags_enabled %}odd{% else %}even{% endif %}' >
2009-01-19 10:40:14 +01:00
< td colspan = '2' > {{ ticket.description|linebreaksbr }}< / td >
2008-01-16 01:26:24 +01:00
< / tr >
2009-09-09 11:11:05 +02:00
{% if ticket.resolution %}< tr class = 'row_{% if tags_enabled %}even{% else %}odd{% endif %}' >
2009-07-22 10:19:46 +02:00
< 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 >
2008-01-16 01:26:24 +01:00
< / tr >
2009-09-09 11:11:05 +02:00
< tr class = 'row_{% if tags_enabled %}even{% else %}odd{% endif %}' >
2008-01-16 01:26:24 +01:00
< td colspan = '2' > {{ ticket.resolution }}< / td >
< / tr > {% endif %}
< / table >
{% if ticket.followup_set.public_followups %}
2008-05-07 11:04:18 +02:00
< h3 > {% trans "Follow-Ups" %}< / h3 >
2008-01-16 01:26:24 +01:00
{% load ticket_to_link %}
{% for followup in ticket.followup_set.public_followups %}
< div class = 'followup' >
2008-01-21 00:31:27 +01:00
< 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 >
2009-01-19 10:40:14 +01:00
{{ followup.comment|force_escape|num_to_link|linebreaksbr }}
2008-01-21 00:31:27 +01:00
{% if followup.ticketchange_set.all %}< div class = 'changes' > < ul >
2008-01-16 01:26:24 +01:00
{% for change in followup.ticketchange_set.all %}
2009-10-13 12:28:42 +02:00
< li > {% blocktrans with change.field as field and change.old_value as old_value and change.new_value as new_value %}Changed {{ field }} from {{ old_value }} to {{ new_value }}.{% endblocktrans %}< / li >
2008-01-16 01:26:24 +01:00
{% endfor %}
2009-01-22 09:10:34 +01:00
{% 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 %}
2008-01-21 00:31:27 +01:00
< / div > < / ul > {% endif %}
2008-01-16 01:26:24 +01:00
< / div >
{% endfor %}
{% endif %}
{% endblock %}