2014-07-21 10:21:33 +02:00
{% extends "helpdesk/public_base.html" %}{% load i18n humanize %}
2008-05-07 11:04:18 +02:00
{% block helpdesk_title %}{% trans "View a Ticket" %}{% endblock %}
2008-01-16 01:26:24 +01:00
{% block helpdesk_body %}
2014-07-21 20:19:23 +02:00
< table class = "table table-hover table-bordered table-striped" >
2014-07-21 20:02:50 +02:00
< caption > {{ ticket.ticket }} . {{ ticket.title }} [{{ ticket.get_status }}]< / caption >
2013-11-25 16:51:14 +01:00
< thead >
2014-07-22 16:09:06 +02:00
< tr > < th colspan = '2' > {% blocktrans with ticket.queue as queue_name %}Queue: {{ queue_name }}{% endblocktrans %}< / th > < / tr >
2013-11-25 16:51:14 +01:00
< / thead >
< tbody >
2014-07-21 20:19:23 +02:00
< tr >
2008-05-07 11:04:18 +02:00
< th > {% trans "Submitted On" %}< / th >
2014-07-21 10:21:33 +02:00
< td > {{ ticket.created|date:"r" }} ({{ ticket.created|naturaltime }})< / td >
2008-01-16 01:26:24 +01:00
< / tr >
2014-07-21 20:19:23 +02:00
< tr >
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 >
2014-07-21 20:19:23 +02:00
< tr >
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 >
2011-02-02 12:22:46 +01:00
{% for customfield in ticket.ticketcustomfieldvalue_set.all %}
2014-07-21 20:19:23 +02:00
< tr >
2011-02-02 12:22:46 +01:00
< th > {{ customfield.field.label }}< / th >
< td > {{ customfield.value }}< / td >
< / tr > {% endfor %}
2009-09-09 11:11:05 +02:00
{% if tags_enabled %}
2014-07-21 20:19:23 +02:00
< tr >
2009-09-09 11:11:05 +02:00
< th > {% trans "Tags" %}< / th >
< td > {{ ticket.tags }}< / td >
< / tr >
{% endif %}
2014-07-21 20:19:23 +02:00
< tr >
2008-05-07 11:04:18 +02:00
< th colspan = '2' > {% trans "Description" %}< / th >
2008-01-16 01:26:24 +01:00
< / tr >
2014-07-21 20:19:23 +02:00
< tr >
2011-02-02 09:31:51 +01:00
< td colspan = '2' > {{ ticket.description|force_escape|urlizetrunc:50|linebreaksbr }}< / td >
2008-01-16 01:26:24 +01:00
< / tr >
2014-07-21 20:19:23 +02:00
{% if ticket.resolution %}< tr >
2011-03-25 23:02:43 +01:00
< th colspan = '2' > {% trans "Resolution" %}{% ifequal ticket.get_status_display "Resolved" %} < a href = '{{ ticket.ticket_url }}&close' > < img src = '{{ STATIC_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 >
2014-07-21 20:19:23 +02:00
< tr >
2011-02-02 09:31:51 +01:00
< td colspan = '2' > {{ ticket.resolution|urlizetrunc:50|linebreaksbr }}< / td >
2008-01-16 01:26:24 +01:00
< / tr > {% endif %}
2013-11-25 16:51:14 +01:00
< / tbody >
2008-01-16 01:26:24 +01:00
< / 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 %}
2013-11-25 16:51:14 +01:00
< div class = 'followup well' >
2014-07-21 10:21:33 +02:00
< div class = 'title' > {{ followup.title }} < span class = 'byline text-info' > {% if followup.user %}by {{ followup.user }}{% endif %} < span title = '{{ followup.date|date:"r" }}' > {{ followup.date|naturaltime }}< / span > < / span > < / div >
2011-02-02 09:31:51 +01:00
{{ followup.comment|force_escape|urlizetrunc:50|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 %}
2014-05-26 17:28:36 +02:00
< / ul > < / div > {% endif %}
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-16 01:26:24 +01:00
< / div >
{% endfor %}
{% endif %}
{% endblock %}