2008-01-16 01:26:24 +01:00
{% extends "helpdesk/public_base.html" %}
{% block helpdesk_title %}Helpdesk{% endblock %}
2008-01-16 04:23:43 +01:00
{% block helpdesk_head %}
2008-01-16 01:26:24 +01:00
< script src = "http://media.jutda.com.au/helpdesk/nicEdit.js" type = "text/javascript" > < / script >
< script type = "text/javascript" >
$(document).ready(function() {
nic = new nicEditor({buttonList: ['bold','italic','underline','strikeThrough','undo','redo','subscript','superscript','html']}).panelInstance('commentBox');
});
< / script >
{% endblock %}
{% 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-01-16 01:26:24 +01:00
< tr class = 'row_columnheads' > < th colspan = '2' > Queue: {{ ticket.queue }}< / th > < / tr >
< tr class = 'row_odd' >
< th > Submitted On< / th >
< td > {{ ticket.created|date:"r" }} ({{ ticket.created|timesince }} ago)< / td >
< / tr >
< tr class = 'row_even' >
< th > Submitter E-Mail< / th >
< td > {{ ticket.submitter_email }}< / td >
< / tr >
< tr class = 'row_odd' >
< th > Priority< / th >
< td > {{ ticket.get_priority_display }}< / td >
< / tr >
< tr class = 'row_even' >
< th colspan = '2' > Description< / th >
< / tr >
< tr class = 'row_odd' >
< td colspan = '2' > {{ ticket.description }}< / td >
< / tr >
{% if ticket.resolution %}< tr class = 'row_even' >
< th colspan = '2' > Resolution{% ifequal ticket.get_status_display "Resolved" %} < a href = '?close' > < img src = '{{ MEDIA_URL }}/helpdesk/buttons/accept.png' alt = 'Accept' title = '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 > Follow-Ups< / h3 >
{% 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 >
2008-01-16 01:26:24 +01:00
{{ followup.comment|num_to_link }}
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 %}
2008-01-21 00:31:27 +01:00
< li > Changed {{ change.field }} from {{ change.old_value }} to {{ change.new_value }}.< / li >
2008-01-16 01:26:24 +01:00
{% endfor %}
2008-01-21 00:31:27 +01:00
< / div > < / ul > {% endif %}
2008-01-16 01:26:24 +01:00
< / div >
{% endfor %}
{% endif %}
{% endblock %}