mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-30 03:43:46 +01:00
7dfb38eab9
* Added statistics views, making use of Google Charts * Added initial data fixture, to automatically create e-mail templates at install-time
50 lines
2.6 KiB
HTML
50 lines
2.6 KiB
HTML
{% extends "helpdesk/base.html" %}
|
|
{% block helpdesk_title %}Helpdesk Dashboard{% endblock %}
|
|
{% block helpdesk_head %}
|
|
<script type='text/javascript' language='javascript' src='{{ MEDIA_URL }}/helpdesk/hover.js'></script>
|
|
{% endblock %}
|
|
{% block helpdesk_body %}
|
|
<table width='30%'>
|
|
<tr class='row_tablehead'><td colspan='4'>Helpdesk Summary</td></tr>
|
|
<tr class='row_columnheads'><th>Queue</th><th>Open</th><th>Resolved</th></tr>
|
|
{% for queue in dash_tickets %}
|
|
<tr class='row_{% cycle odd,even %} row_hover '>
|
|
<th><a href='{% url helpdesk_list %}?queue={{ queue.queue }}'>{{ queue.name }}</a></th>
|
|
<td>{% if queue.open %}<a href='{% url helpdesk_list %}?queue={{ queue.queue }}&status=1&status=2'>{% endif %}{{ queue.open }}{% if queue.open %}</a>{% endif %}</td>
|
|
<td>{% if queue.resolved %}<a href='{% url helpdesk_list %}?queue={{ queue.queue }}&status=3'>{% endif %}{{ queue.resolved }}{% if queue.resolved %}</a>{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<table width='100%'>
|
|
<tr class='row_tablehead'><td colspan='6'>Your Tickets</td></tr>
|
|
<tr class='row_columnheads'><th>#</th><th>Pr</th><th>Title</th><th>Queue</th><th>Status</th><th>Last Update</th></tr>
|
|
{% for ticket in user_tickets %}
|
|
<tr class='row_{% cycle odd,even %} row_hover'>
|
|
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.ticket }}</a></th>
|
|
<td><img src='{{ ticket.get_priority_img }}' alt='Priority {{ ticket.priority }}' title='Priority {{ ticket.priority }}' height='16' width='16' /></td>
|
|
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.title }}</a></th>
|
|
<td>{{ ticket.queue }}</td>
|
|
<td>{{ ticket.get_status }}</td>
|
|
<td><span title='{{ ticket.modified|date:"r" }}'>{{ ticket.modified|timesince }}</span></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<table width='100%'>
|
|
<tr class='row_tablehead'><td colspan='6'>Unassigned Tickets</td></tr>
|
|
<tr class='row_columnheads'><th>#</th><th>Pr</th><th>Title</th><th>Queue</th><th>Created</th><th> </th></tr>
|
|
{% for ticket in unassigned_tickets %}
|
|
<tr class='row_{% cycle odd,even %} row_hover'>
|
|
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.ticket }}</a></th>
|
|
<td><img src='{{ ticket.get_priority_img }}' alt='Priority {{ ticket.priority }}' title='Priority {{ ticket.priority }}' height='16' width='16' /></td>
|
|
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.title }}</a></th>
|
|
<td>{{ ticket.queue }}</td>
|
|
<td><span title='{{ ticket.created|date:"r" }}'>{{ ticket.created|timesince }} ago</span></td>
|
|
<th><a href='{{ ticket.get_absolute_url }}?take'><img src='{{ MEDIA_URL }}/helpdesk/buttons/take.png' width='60' height='15' alt='Take' title='Assign this ticket to yourself' /></a></th>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|