2008-05-07 11:04:18 +02:00
{% extends "helpdesk/base.html" %}{% load i18n %}
{% block helpdesk_title %}{% trans "Helpdesk Dashboard" %}{% endblock %}
2008-01-15 06:07:19 +01:00
{% block helpdesk_head %}
< script type = 'text/javascript' language = 'javascript' src = '{{ MEDIA_URL }}/helpdesk/hover.js' > < / script >
{% endblock %}
2007-12-27 01:29:17 +01:00
{% block helpdesk_body %}
< table width = '30%' >
2008-05-07 11:04:18 +02:00
< tr class = 'row_tablehead' > < td colspan = '4' > {% trans "Helpdesk Summary" %}< / td > < / tr >
< tr class = 'row_columnheads' > < th > {% trans "Queue" %}< / th > < th > {% trans "Open" %}< / th > < th > {% trans "Resolved" %}< / th > < / tr >
2007-12-27 01:29:17 +01:00
{% for queue in dash_tickets %}
< tr class = 'row_{% cycle odd,even %} row_hover ' >
2008-04-02 01:26:12 +02:00
< 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 >
2007-12-27 01:29:17 +01:00
< / tr >
{% endfor %}
< / table >
2008-05-07 11:04:18 +02:00
2007-12-27 01:29:17 +01:00
< table width = '100%' >
2008-05-07 11:04:18 +02:00
< tr class = 'row_tablehead' > < td colspan = '6' > {% trans "Your Tickets" %}< / td > < / tr >
< tr class = 'row_columnheads' > < th > #< / th > < th > {% trans "Pr" %}< / th > < th > {% trans "Title" %}< / th > < th > {% trans "Queue" %}< / th > < th > {% trans "Status" %}< / th > < th > {% trans "Last Update" %}< / th > < / tr >
2007-12-27 01:29:17 +01:00
{% for ticket in user_tickets %}
< tr class = 'row_{% cycle odd,even %} row_hover' >
2008-01-12 06:37:45 +01:00
< th > < a href = '{{ ticket.get_absolute_url }}' > {{ ticket.ticket }}< / a > < / th >
2008-05-07 11:04:18 +02:00
< td > < img src = '{{ ticket.get_priority_img }}' alt = '{% blocktrans with ticket.priority as priority %}Priority {{ priority }}{% endblocktrans %}' title = '{% blocktrans with ticket.priority as priority %}Priority {{ priority }}{% endblocktrans %}' height = '16' width = '16' / > < / td >
2007-12-27 01:29:17 +01:00
< th > < a href = '{{ ticket.get_absolute_url }}' > {{ ticket.title }}< / a > < / th >
< td > {{ ticket.queue }}< / td >
2008-01-21 00:31:27 +01:00
< td > {{ ticket.get_status }}< / td >
2008-01-10 01:28:45 +01:00
< td > < span title = '{{ ticket.modified|date:"r" }}' > {{ ticket.modified|timesince }}< / span > < / td >
2007-12-27 01:29:17 +01:00
< / tr >
{% endfor %}
< / table >
< table width = '100%' >
2008-05-07 11:04:18 +02:00
< tr class = 'row_tablehead' > < td colspan = '6' > {% trans "Unassigned Tickets" %}< / td > < / tr >
< tr class = 'row_columnheads' > < th > #< / th > < th > {% trans "Pr" %}< / th > < th > {% trans "Title" %}< / th > < th > {% trans "Queue" %}< / th > < th > {% trans "Created" %}< / th > < th > < / th > < / tr >
2007-12-27 01:29:17 +01:00
{% for ticket in unassigned_tickets %}
< tr class = 'row_{% cycle odd,even %} row_hover' >
2008-01-12 06:37:45 +01:00
< th > < a href = '{{ ticket.get_absolute_url }}' > {{ ticket.ticket }}< / a > < / th >
2008-05-07 11:04:18 +02:00
< td > < img src = '{{ ticket.get_priority_img }}' alt = '{% blocktrans with ticket.priority as priority %}Priority {{ priority }}{% endblocktrans %}' title = '{% blocktrans with ticket.priority as priority %}Priority {{ priority }}{% endblocktrans %}' height = '16' width = '16' / > < / td >
2007-12-27 01:29:17 +01:00
< th > < a href = '{{ ticket.get_absolute_url }}' > {{ ticket.title }}< / a > < / th >
< td > {{ ticket.queue }}< / td >
2008-01-07 21:22:13 +01:00
< td > < span title = '{{ ticket.created|date:"r" }}' > {{ ticket.created|timesince }} ago< / span > < / td >
2008-05-07 11:04:18 +02:00
< th > < a href = '{{ ticket.get_absolute_url }}?take' > < img src = '{{ MEDIA_URL }}/helpdesk/buttons/take.png' width = '60' height = '15' alt = '{% trans "Take" %}' title = '{% trans "Assign this ticket to yourself" %}' / > < / a > < / th >
2007-12-27 01:29:17 +01:00
< / tr >
{% endfor %}
< / table >
{% endblock %}