From 63b0fc6269b38edf7234b9f151b80d81f614c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 4 Aug 2015 10:11:24 +0300 Subject: Initial commit First public commit --- servo/templates/stats/index.html | 68 ++++++++++++++++++++++++++ servo/templates/stats/locations.html | 33 +++++++++++++ servo/templates/stats/newstats.html | 87 +++++++++++++++++++++++++++++++++ servo/templates/stats/plot_snippet.html | 9 ++++ servo/templates/stats/queues.html | 29 +++++++++++ servo/templates/stats/sales.html | 33 +++++++++++++ servo/templates/stats/statuses.html | 21 ++++++++ 7 files changed, 280 insertions(+) create mode 100755 servo/templates/stats/index.html create mode 100755 servo/templates/stats/locations.html create mode 100644 servo/templates/stats/newstats.html create mode 100755 servo/templates/stats/plot_snippet.html create mode 100755 servo/templates/stats/queues.html create mode 100755 servo/templates/stats/sales.html create mode 100755 servo/templates/stats/statuses.html (limited to 'servo/templates/stats') diff --git a/servo/templates/stats/index.html b/servo/templates/stats/index.html new file mode 100755 index 0000000..2edc57d --- /dev/null +++ b/servo/templates/stats/index.html @@ -0,0 +1,68 @@ +{% extends "default.html" %} +{% load i18n %} + +{% block content %} + + + +
+
+ {% block filter_block %} +
+ {% csrf_token %} + {% for field in form %} +
+ +
{{ field }}
+
+ {% endfor %} +
+ +
+ +
+
+
+ {% endblock filter_block %} +
+
+
+
+ {% block stats %} +

{% trans "Orders Assigned" %}

+

{% trans "Shows how many new orders have been assigned to each technician over the given time period." %}

+ {% include "stats/plot_snippet.html" with url="/stats/data/orders/runrate/" %} +
+

{% trans "Orders Created" %}

+

{% trans "This graph shows how many orders are checked in by each user." %}

+ {% include "stats/plot_snippet.html" with url="/stats/data/created/user/" %} +
+

{% trans "Work Distribution" %}

+

{% trans "Shows you how the total number of service orders is distributed across the technicians at this location." %}

+
+ {% endblock stats %} +
+
+ +{% endblock content %} + +{% block crumbs %} +
  • {% trans "Statistics" %}
  • +{% endblock crumbs %} + +{% block media %} + + + + + +{% endblock media %} diff --git a/servo/templates/stats/locations.html b/servo/templates/stats/locations.html new file mode 100755 index 0000000..576da8b --- /dev/null +++ b/servo/templates/stats/locations.html @@ -0,0 +1,33 @@ +{% extends "stats/index.html" %} +{% load i18n %} + +{% block tabs %} +
  • {% trans "Technicians" %}
  • +
  • {% trans "Locations" %}
  • +
  • {% trans "Queues" %}
  • +
  • {% trans "Repairs" %}
  • +
  • {% trans "Statuses" %}
  • +
  • {% trans "Sales" %}
  • +{% endblock tabs %} + +{% block stats %} +

    {% trans "Orders Created" %}

    +

    {% trans "Shows you how many orders are created at each location." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/created/location/" %} +
    +

    {% trans "Orders Closed" %}

    +

    {% trans "Shows you how many orders have been closed at each location." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/closed/location/" %} +
    +

    {% trans "Average Turnaround" %}

    +

    {% trans "Shows how many hours it takes to complete an order at each location." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/turnaround/location/" %} +
    +

    {% trans "Average Runrate" %}

    +

    {% trans "Shows you how many orders people are working on at each location." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/runrate/location/" %} +
    +

    {% trans "Work Distribution" %}

    +

    {% trans "This shows you how your overall work load is distributed across your service locations." %}

    +
    +{% endblock stats %} diff --git a/servo/templates/stats/newstats.html b/servo/templates/stats/newstats.html new file mode 100644 index 0000000..1900efc --- /dev/null +++ b/servo/templates/stats/newstats.html @@ -0,0 +1,87 @@ +{% extends "default.html" %} +{% load i18n %} + +{% block content %} + + + +
    +
    + {% block filter_block %} +
    + {% for field in form %} +
    + +
    {{ field }}
    +
    + {% endfor %} +
    + +
    + +
    +
    +
    + {% endblock filter_block %} +
    +
    +
    +
    + {% block stats %} + + + + + + + + + + + + + {% for r in results %} + + + + + + + + + {% endfor %} + + + + + + + + + + + {% if totals.turnaround.nonzero %} + + + + + {% endif %} + +
    {% trans "Technician" %}{% trans "Cases Created" %}{% trans "Cases Assigned" %}{% trans "Repairs Created" %}{% trans "Cases Dispatched" %}
    {{ r.name }}{{ r.created }}{{ r.assigned }}{{ r.repairs }}{{ r.dispatched }}
    {% trans "Total" %}{{ totals.created }}{{ totals.assigned }}{{ totals.repairs }}{{ totals.dispatched }}{{ totals.diff }}
    {% trans "Average turnaround time" %}{{ totals.turnaround.days }} {% trans "days" %}, {{ totals.turnaround.hours }} {% trans "hours" %}
    + {% endblock stats %} +
    +
    +{% endblock content %} + +{% block crumbs %} +
  • {% trans "Statistics" %}
  • +{% endblock crumbs %} diff --git a/servo/templates/stats/plot_snippet.html b/servo/templates/stats/plot_snippet.html new file mode 100755 index 0000000..c93a41e --- /dev/null +++ b/servo/templates/stats/plot_snippet.html @@ -0,0 +1,9 @@ +
    +
    +
    +
    +
    +
    +
    +
    +
    diff --git a/servo/templates/stats/queues.html b/servo/templates/stats/queues.html new file mode 100755 index 0000000..eefec46 --- /dev/null +++ b/servo/templates/stats/queues.html @@ -0,0 +1,29 @@ +{% extends "stats/index.html" %} +{% load i18n %} + +{% block tabs %} +
  • {% trans "Technicians" %}
  • +
  • {% trans "Locations" %}
  • +
  • {% trans "Queues" %}
  • +
  • {% trans "Repairs" %}
  • +
  • {% trans "Statuses" %}
  • +
  • {% trans "Sales" %}
  • +{% endblock tabs %} + +{% block stats %} +

    {% trans "Orders Created" %}

    +

    {% trans "This is your total number of orders per queue in the specified time period" %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/orders/count/" %} +
    +

    {% trans "Orders Closed" %}

    +

    {% trans "Shows you how many orders have been closed in each queue." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/closed/queue/" %} +
    +

    {% trans "Average Turnaround" %}

    +

    {% trans "Shows how many hours it takes to complete an order in each queue." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/orders/turnaround/" %} +
    +

    {% trans "Work Distribution" %}

    +

    {% trans "This shows your total ratio of orders over the time period distributed over each queue." %}

    +
    +{% endblock stats %} diff --git a/servo/templates/stats/sales.html b/servo/templates/stats/sales.html new file mode 100755 index 0000000..186e897 --- /dev/null +++ b/servo/templates/stats/sales.html @@ -0,0 +1,33 @@ +{% extends "stats/index.html" %} +{% load i18n %} + +{% block tabs %} +
  • {% trans "Technicians" %}
  • +
  • {% trans "Locations" %}
  • +
  • {% trans "Queues" %}
  • +
  • {% trans "Repairs" %}
  • +
  • {% trans "Statuses" %}
  • +
  • {% trans "Sales" %}
  • +{% 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." %}

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +{% endblock stats %} diff --git a/servo/templates/stats/statuses.html b/servo/templates/stats/statuses.html new file mode 100755 index 0000000..f4fb427 --- /dev/null +++ b/servo/templates/stats/statuses.html @@ -0,0 +1,21 @@ +{% extends "stats/index.html" %} +{% load i18n %} + +{% block tabs %} +
  • {% trans "Technicians" %}
  • +
  • {% trans "Locations" %}
  • +
  • {% trans "Queues" %}
  • +
  • {% trans "Repairs" %}
  • +
  • {% trans "Statuses" %}
  • +
  • {% trans "Sales" %}
  • +{% endblock tabs %} + +{% block stats %} +

    {% trans "Orders per location" %}

    +

    {% trans "Shows the number of orders with a particular status at the selected location that have been assigned to a technician over the specified time period." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/status/location/" %} +
    +

    {% trans "Orders per user" %}

    +

    {% trans "Shows the number of orders with a particular status per each user at the given location that have been assigned to a technician over the specified time period." %}

    + {% include "stats/plot_snippet.html" with url="/stats/data/status/tech/" %} +{% endblock stats %} -- cgit v1.2.3