mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-29 01:59:25 +01:00
151 lines
7.3 KiB
HTML
151 lines
7.3 KiB
HTML
{% extends "helpdesk/base.html" %}
|
|
{% block helpdesk_title %}Helpdesk{% endblock %}
|
|
{% block helpdesk_head %}
|
|
<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');
|
|
$("#ShowFurtherEditOptions").click(function() {
|
|
$("#FurtherEditOptions").fadeIn();
|
|
$("#ShowFurtherOptPara").hide();
|
|
return false;
|
|
});
|
|
$('#id_preset').change(function() {
|
|
preset = $('#id_preset').val();
|
|
if (preset != '') {
|
|
$.get("{% url helpdesk_raw "preset" %}?id=" + preset, function(data) {
|
|
nic.nicInstances[0].setContent(data);
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block helpdesk_body %}
|
|
|
|
<table width='100%'>
|
|
<tr class='row_tablehead'><td>{{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status }}]</td><td align='right'><a href='#edit'><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/'>Unhold</a>{% else %}<a href='hold/'>Hold</a>{% endif %}</td></tr>
|
|
<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>Assigned To</th>
|
|
<td>{{ ticket.get_assigned_to }}{% ifequal ticket.get_assigned_to 'Unassigned' %} <strong><a href='?take'><img src='{{ MEDIA_URL }}/helpdesk/buttons/take.png' width='60' height='15' alt='Take' title='Assign this ticket to yourself' /></a></strong>{% endifequal %}</td>
|
|
</tr>
|
|
|
|
<tr class='row_odd'>
|
|
<th>Submitter E-Mail</th>
|
|
<td>{{ ticket.submitter_email }}</td>
|
|
</tr>
|
|
|
|
<tr class='row_even'>
|
|
<th>Priority</th>
|
|
<td>{{ ticket.get_priority_display }}</td>
|
|
</tr>
|
|
|
|
<tr class='row_odd'>
|
|
<th colspan='2'>Description</th>
|
|
</tr>
|
|
<tr class='row_even'>
|
|
<td colspan='2'>{{ ticket.description }}</td>
|
|
</tr>
|
|
|
|
{% if ticket.resolution %}<tr class='row_odd'>
|
|
<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_even'>
|
|
<td colspan='2'>{{ ticket.resolution }}</td>
|
|
</tr>{% endif %}
|
|
|
|
</table>
|
|
|
|
{% if ticket.followup_set.all %}
|
|
<h3>Follow-Ups</h3>
|
|
{% load ticket_to_link %}
|
|
{% for followup in ticket.followup_set.all %}
|
|
<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>{% if not followup.public %} <span class='private'>(Private)</span>{% endif %}</span></div>
|
|
{% if followup.comment %}{{ followup.comment|num_to_link }}{% endif %}
|
|
{% if followup.ticketchange_set.all %}<div class='changes'><ul>
|
|
{% for change in followup.ticketchange_set.all %}
|
|
<li>Changed {{ change.field }} from {{ change.old_value }} to {{ change.new_value }}.</li>
|
|
{% endfor %}
|
|
</div></ul>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<h3>Respond to this ticket</h3>
|
|
|
|
<form method='post' action='update/'>
|
|
|
|
<fieldset>
|
|
<dl>
|
|
<dt><label for='id_preset'>Use a Pre-set Reply</label> <span class='form_optional'>(Optional)</span></dt>
|
|
<dd><select name='preset' id='id_preset'><option value=''>------</option>{% for preset in preset_replies %}<option value='{{ preset.id }}'>{{ preset.name }}</option>{% endfor %}</select></dd>
|
|
<dd class='form_help_text'>Selecting a pre-set reply will over-write your comment below. You can then modify the pre-set reply to your liking before saving this update.</dd>
|
|
|
|
<dt><label for='commentBox'>Comment / Resolution</label></dt>
|
|
<dd><textarea rows='8' cols='70' name='comment' id='commentBox'></textarea></dd>
|
|
<dd class='form_help_text'>You can use the ticket and queue template variables in your message.</dd>
|
|
|
|
<dt><label>New Status</label></dt>
|
|
{% ifequal ticket.status 1 %}
|
|
<dd><input type='radio' name='new_status' value='1' id='st_open' checked='checked'><label for='st_open' class='active'>Open</label> »
|
|
<input type='radio' name='new_status' value='3' id='st_resolved'><label for='st_resolved'>Resolved</label> »
|
|
<input type='radio' name='new_status' value='4' id='st_closed'><label for='st_closed'>Closed</label></dd>
|
|
{% endifequal %}
|
|
{% ifequal ticket.status 2 %}
|
|
<dd><input type='radio' name='new_status' value='2' id='st_reopened' checked='checked'><label for='st_reopened' class='active'>Reopened</label> »
|
|
<input type='radio' name='new_status' value='3' id='st_resolved'><label for='st_resolved'>Resolved</label> »
|
|
<input type='radio' name='new_status' value='4' id='st_closed'><label for='st_closed'>Closed</label> </dd>
|
|
{% endifequal %}
|
|
{% ifequal ticket.status 3 %}
|
|
<dd><input type='radio' name='new_status' value='2' id='st_reopened'><label for='st_reopened'>Reopened</label> «
|
|
<input type='radio' name='new_status' value='3' id='st_resolved' checked='checked'><label for='st_resolved' class='active'>Resolved</label> »
|
|
<input type='radio' name='new_status' value='4' id='st_closed'><label for='st_closed'>Closed</label></dd>
|
|
{% endifequal %}
|
|
{% ifequal ticket.status 4 %}
|
|
<dd><input type='radio' name='new_status' value='2' id='st_reopened'><label for='st_reopened'>Reopened</label> «
|
|
<input type='radio' name='new_status' value='4' id='st_closed' checked='checked'><label for='st_closed'>Closed</label></dd>
|
|
{% endifequal %}
|
|
|
|
<dt><label for='id_public'>Is this update public?</label> <span class='form_optional'>(Optional)</span></dt>
|
|
<dd><input type='checkbox' name='public' value='1' checked='checked' /></dD>
|
|
<dd class='form_help_text'>If this is public, the submitter will be e-mailed your comment or resolution.</dd>
|
|
</dl>
|
|
|
|
<p id='ShowFurtherOptPara'><a href='#' id='ShowFurtherEditOptions'>Change Further Details »</a></p>
|
|
|
|
<div id='FurtherEditOptions' style='display: none;'>
|
|
|
|
<dl>
|
|
|
|
<dt><label for='id_title'>Title</label></dt>
|
|
<dd><input type='text' name='title' value='{{ ticket.title|escape }}' /></dd>
|
|
|
|
<dt><label for='id_owner'>Owner</label></dt>
|
|
<dd><select id='id_owner' name='owner'><option value='0'>Unassign</option>{% for u in active_users %}<option value='{{ u.id }}' {% ifequal u.id ticket.assigned_to.id %}selected{% endifequal %}>{{ u }}</option>{% endfor %}</select></dd>
|
|
|
|
<dt><label for='id_priority'>Priority</label></dt>
|
|
<dd><select id='id_priority' name='priority'>{% for p in priorities %}<option value='{{ p.0 }}'{% ifequal p.0 ticket.priority %} selected='selected'{% endifequal %}>{{ p.1 }}</option>{% endfor %}</select></dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
<input type='submit' value='Update This Ticket' />
|
|
|
|
</form>
|
|
|
|
|
|
{% endblock %}
|