2008-05-07 11:04:18 +02:00
{% extends "helpdesk/base.html" %}{% load i18n %}
2008-04-02 01:26:12 +02:00
2008-05-07 11:04:18 +02:00
{% block helpdesk_title %}{% trans "Reports & Statistics" %}{% endblock %}
2008-04-02 01:26:12 +02:00
2018-09-03 05:27:39 +02:00
{% block helpdesk_breadcrumb %}
< li class = "breadcrumb-item" >
< a href = "{% url 'helpdesk:report_index' %}" > {% trans "Reports & Statistics" %}< / a >
< / li >
< li class = "breadcrumb-item active" > Overview< / li >
{% endblock %}
2009-12-23 12:47:50 +01:00
{% block helpdesk_body %}
2011-05-11 12:07:46 +02:00
< h2 > {% trans "Reports & Statistics" %}< / h2 >
2008-04-02 01:26:12 +02:00
2016-10-31 07:57:08 +01:00
{% if number_tickets == 0 %}
2011-05-11 12:07:46 +02:00
< p > {% trans "You haven't created any tickets yet, so you cannot run any reports." %}< / p >
2009-12-23 12:47:50 +01:00
{% else %}
2018-12-22 04:37:33 +01:00
< div class = "card mb-3" >
< div class = "card-header" >
< i class = "fas fa-info-circle" > < / i >
{% trans "Current Ticket Stats" %}
< / div >
< div class = "card-body" >
< div class = "table-responsive" >
< table class = "table table-striped table-bordered table-hover" >
< tbody >
< tr >
< td > {% trans "Average number of days until ticket is closed (all tickets): " %}< / td >
< td > < strong style = "color: red;" > {{ basic_ticket_stats.average_nbr_days_until_ticket_closed }}< / strong > .< / td >
< / tr >
< tr >
< td > {% trans "Average number of days until ticket is closed (tickets opened in last 60 days): " %}< / td >
< td > < strong style = "color: red;" > {{ basic_ticket_stats.average_nbr_days_until_ticket_closed_last_60_days }}< / strong > . {% trans "Click" %} < strong > < a href = "{% url 'helpdesk:report_index' %}daysuntilticketclosedbymonth" > here< / a > < / strong > {% trans "for detailed average by month." %} < / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- /.table - responsive -->
< div class = "table-responsive" >
< table class = "table table-striped table-bordered table-hover" >
< thead >
< tr >
< th > {% trans "Queue" %}< / th >
< th > {% trans "Open" %}< / th >
< th > {% trans "Resolved" %}< / th >
< th > {% trans "Closed" %}< / th >
2019-02-06 14:24:43 +01:00
< th > {% trans "Time spent" %}< / th >
2018-12-22 04:37:33 +01:00
< / tr >
< / thead >
< tbody >
{% for queue in dash_tickets %}
< tr > {% url 'helpdesk:list' as hdlist %}
< td > < a href = '{{ hdlist }}?queue={{ queue.queue }}&status=1&status=2' > {{ queue.name }}< / a > < / td >
< td > {% if queue.open %}< a href = '{{ hdlist }}?queue={{ queue.queue }}&status=1&status=2' > {% endif %}{{ queue.open }}{% if queue.open %}< / a > {% endif %}< / td >
< td > {% if queue.resolved %}< a href = '{{ hdlist }}?queue={{ queue.queue }}&status=3' > {% endif %}{{ queue.resolved }}{% if queue.resolved %}< / a > {% endif %}< / td >
< td > {% if queue.closed %}< a href = '{{ hdlist }}?queue={{ queue.queue }}&status=4' > {% endif %}{{ queue.closed }}{% if queue.closed %}< / a > {% endif %}< / td >
2019-02-19 23:01:51 +01:00
< td > {{ queue.time_spent }}{% if queue.dedicated_time %} / {{ queue.dedicated_time }}{% endif %}< / td >
2018-12-22 04:37:33 +01:00
< / tr >
{% empty %}
< tr > < td colspan = '6' > {% trans "There are no unassigned tickets." %}< / td > < / tr >
{% endfor %}
< / tbody >
< / table >
< / div >
<!-- /.table - responsive -->
< / div >
<!-- /.card - body -->
< / div >
<!-- /.card -->
2008-04-02 01:26:12 +02:00
2018-12-22 04:37:33 +01:00
< div class = "card mb-3" >
< div class = "card-header" >
< i class = "fas fa-print" > < / i >
{% trans "Generate Report" %}
< / div >
< div class = "card-body" >
< ul >
< li > {% trans "Reports By User" %}
< ul >
< li > < a href = 'userpriority/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "by Priority" %}< / a > < / li >
< li > < a href = 'userqueue/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "by Queue" %}< / a > < / li >
< li > < a href = 'userstatus/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "by Status" %}< / a > < / li >
< li > < a href = 'usermonth/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "by Month" %}< / a > < / li >
< / ul >
< / li >
< li > {% trans "Reports By Queue" %}
< ul >
< li > < a href = 'queuepriority/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "by Priority" %}< / a > < / li >
< li > < a href = 'queuestatus/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "by Status" %}< / a > < / li >
< li > < a href = 'queuemonth/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "by Month" %}< / a > < / li >
< li > < a href = 'daysuntilticketclosedbymonth/{% if saved_query %}?saved_query={{ saved_query }}{% endif %}' > {% trans "Days until ticket closed by Month" %}< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
<!-- /.card - body -->
< / div >
<!-- /.card -->
2008-04-02 01:26:12 +02:00
2018-12-22 04:37:33 +01:00
{% endif %}
{% endblock %}