From f30d6d73513a5535cae4d97ee2cc85f01660750c Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 21 Mar 2016 19:14:11 +0200 Subject: Adding device stats --- servo/templates/stats/devices.html | 40 +++++++++++++++++++++++++++++ servo/templates/stats/index.html | 1 + servo/templates/stats/locations.html | 1 + servo/templates/stats/newstats.html | 1 + servo/templates/stats/queues.html | 1 + servo/templates/stats/sales.html | 49 ++++++++++++++++++------------------ servo/templates/stats/statuses.html | 1 + 7 files changed, 70 insertions(+), 24 deletions(-) create mode 100644 servo/templates/stats/devices.html (limited to 'servo/templates/stats') diff --git a/servo/templates/stats/devices.html b/servo/templates/stats/devices.html new file mode 100644 index 0000000..079530a --- /dev/null +++ b/servo/templates/stats/devices.html @@ -0,0 +1,40 @@ +{% extends "stats/index.html" %} +{% load i18n %} + +{% block tabs %} +
  • {% trans "Technicians" %}
  • +
  • {% trans "Locations" %}
  • +
  • {% trans "Queues" %}
  • +
  • {% trans "Repairs" %}
  • +
  • {% trans "Statuses" %}
  • +
  • {% trans "Sales" %}
  • +
  • {% trans "Devices" %}
  • +{% endblock tabs %} + +{% block stats %} +

    {% trans "Device statistics" %}

    +

    {% trans "Shows the number of orders and GSX repairs created for each device model within the given timeframe." %}

    +
    + + + + + + + + + + {% for r in results %} + + + + + + {% empty %} + + + + {% endfor %} + +
    {% trans "Device" %}{% trans "Service Orders" %}{% trans "GSX Repairs" %}
    {{ r.0 }}{{ r.1 }}{{ r.2 }}
    {% trans "No results found" %}
    +{% endblock stats %} diff --git a/servo/templates/stats/index.html b/servo/templates/stats/index.html index 2edc57d..90c0ed9 100755 --- a/servo/templates/stats/index.html +++ b/servo/templates/stats/index.html @@ -11,6 +11,7 @@
  • {% trans "Repairs" %}
  • {% trans "Statuses" %}
  • {% trans "Sales" %}
  • +
  • {% trans "Devices" %}
  • {% endblock tabs %} diff --git a/servo/templates/stats/locations.html b/servo/templates/stats/locations.html index 576da8b..da4545e 100755 --- a/servo/templates/stats/locations.html +++ b/servo/templates/stats/locations.html @@ -8,6 +8,7 @@
  • {% trans "Repairs" %}
  • {% trans "Statuses" %}
  • {% trans "Sales" %}
  • +
  • {% trans "Devices" %}
  • {% endblock tabs %} {% block stats %} diff --git a/servo/templates/stats/newstats.html b/servo/templates/stats/newstats.html index 1900efc..325ab10 100644 --- a/servo/templates/stats/newstats.html +++ b/servo/templates/stats/newstats.html @@ -11,6 +11,7 @@
  • {% trans "Repairs" %}
  • {% trans "Statuses" %}
  • {% trans "Sales" %}
  • +
  • {% trans "Devices" %}
  • {% endblock tabs %} diff --git a/servo/templates/stats/queues.html b/servo/templates/stats/queues.html index eefec46..f4f493d 100755 --- a/servo/templates/stats/queues.html +++ b/servo/templates/stats/queues.html @@ -8,6 +8,7 @@
  • {% trans "Repairs" %}
  • {% trans "Statuses" %}
  • {% trans "Sales" %}
  • +
  • {% trans "Devices" %}
  • {% endblock tabs %} {% block stats %} diff --git a/servo/templates/stats/sales.html b/servo/templates/stats/sales.html index 186e897..e58b7b4 100755 --- a/servo/templates/stats/sales.html +++ b/servo/templates/stats/sales.html @@ -2,32 +2,33 @@ {% load i18n %} {% block tabs %} -
  • {% trans "Technicians" %}
  • -
  • {% trans "Locations" %}
  • -
  • {% trans "Queues" %}
  • -
  • {% trans "Repairs" %}
  • -
  • {% trans "Statuses" %}
  • -
  • {% trans "Sales" %}
  • +
  • {% trans "Technicians" %}
  • +
  • {% trans "Locations" %}
  • +
  • {% trans "Queues" %}
  • +
  • {% trans "Repairs" %}
  • +
  • {% trans "Statuses" %}
  • +
  • {% trans "Sales" %}
  • +
  • {% trans "Devices" %}
  • {% endblock tabs %} {% block stats %} -

    {% trans "Sales" %}

    -

    {% trans "Shows you invoice totals per queue within the selected time period." %}

    -{% include "stats/plot_snippet.html" with url="/stats/data/sales/invoices/" %} -
    -

    {% trans "Purchases" %}

    -

    {% trans "Shows you Purchase Order totals per queue within the selected time period." %}

    -{% include "stats/plot_snippet.html" with url="/stats/data/sales/purchases/" %} -
    -

    {% trans "Service Parts" %}

    -

    {% trans "Shows you how many parts have been ordered for each labour tier." %}

    -
    -
    -
    -
    -
    +

    {% trans "Sales" %}

    +

    {% trans "Shows you invoice totals per queue within the selected time period." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/sales/invoices/" %} +
    +

    {% trans "Purchases" %}

    +

    {% trans "Shows you Purchase Order totals per queue within the selected time period." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/sales/purchases/" %} +
    +

    {% trans "Service Parts" %}

    +

    {% trans "Shows you how many parts have been ordered for each labour tier." %}

    +
    +
    +
    +
    +
    +
    +
    +
    -
    -
    -
    {% endblock stats %} diff --git a/servo/templates/stats/statuses.html b/servo/templates/stats/statuses.html index f4fb427..bfcf73e 100755 --- a/servo/templates/stats/statuses.html +++ b/servo/templates/stats/statuses.html @@ -8,6 +8,7 @@
  • {% trans "Repairs" %}
  • {% trans "Statuses" %}
  • {% trans "Sales" %}
  • +
  • {% trans "Devices" %}
  • {% endblock tabs %} {% block stats %} -- cgit v1.2.3