diff --git a/server/core/settings.py b/server/core/settings.py index fba4f128..0209e701 100644 --- a/server/core/settings.py +++ b/server/core/settings.py @@ -51,6 +51,7 @@ INSTALLED_APPS = [ 'rooms', 'assignments', 'basicknowledge', + 'statistics', 'wagtail.contrib.forms', 'wagtail.contrib.redirects', diff --git a/server/core/urls.py b/server/core/urls.py index 731a404c..13396bc0 100644 --- a/server/core/urls.py +++ b/server/core/urls.py @@ -12,12 +12,13 @@ urlpatterns = [ # django admin url(r'^guru/', admin.site.urls), url(r'^accounts/', include('django.contrib.auth.urls')), + url(r'^statistics/', include('statistics.urls', namespace='statistics')), # wagtail url(r'^cms/', include(wagtailadmin_urls)), # graphql backend - url(r'^api/', include('api.urls', namespace="api")), + url(r'^api/', include('api.urls', namespace="api")) ] if settings.DEBUG and not settings.USE_AWS: diff --git a/server/statistics/__init__.py b/server/statistics/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/server/statistics/templates/statistics.html b/server/statistics/templates/statistics.html new file mode 100644 index 00000000..340b116e --- /dev/null +++ b/server/statistics/templates/statistics.html @@ -0,0 +1,114 @@ +{% extends "base.html" %} + +{% block body %} +

Statistics

+ +

Ergebnisse

+ +
+
+ Total Anzahl erfasste Ergebnisse (nur für Schüler gespeichert) +
+
+ 0 +
+
+
+
+ Total Anzahl erfasste Ergebnisse (mit Lehrperson geteilt) +
+
+ 0 +
+
+
+
+ Anzahl erfasste Ergebnisse pro Modul (nur für Schüler gespeichert) +
+
+ 0 +
+
+
+
+ Anzahl erfasste Ergebnisse pro Modul (mit Lehrperson geteilt) +
+
+ 0 +
+
+
+
+ Anzahl erfasste Ergebnisse pro Klasse (nur für Schüler gespeichert) +
+
+ 0 +
+
+
+
+ Anzahl erfasste Ergebnisse pro Klasse (mit Lehrperson geteilt) +
+
+ 0 +
+
+ +

Räume

+
+
+ Anzahl erfasste Räume pro Klasse +
+
+ 0 +
+
+ +
+
+ Anzahl erfasste Raumeinträge pro Klasse +
+
+ 0 +
+
+ +
+
+ Anzahl erfasste Raumeinträge pro Raum +
+
+ 0 +
+
+ + +

Inhaltsblöcke

+ +
+
+ Total Anzahl erfasste Inhaltsblöcke +
+
+ 0 +
+
+
+
+ Anzahl erfasste Inhaltsblöcke pro Klasse +
+
+ 0 +
+
+
+
+ Wieviele Personen haben einen oder mehrere Inhaltsblöcke erfasst? +
+
+ 0 +
+
+ + +{% endblock %} diff --git a/server/statistics/urls.py b/server/statistics/urls.py new file mode 100644 index 00000000..cb724d3e --- /dev/null +++ b/server/statistics/urls.py @@ -0,0 +1,8 @@ +from django.conf.urls import url + +from statistics.views import StatisticsView + +app_name = 'api' +urlpatterns = [ + url(r'^$', StatisticsView.as_view()), +] diff --git a/server/statistics/views.py b/server/statistics/views.py new file mode 100644 index 00000000..307e83df --- /dev/null +++ b/server/statistics/views.py @@ -0,0 +1,13 @@ +from django.http import HttpResponse +import datetime + +from django.views.generic import TemplateView + + +class StatisticsView(TemplateView): + template_name = "statistics.html" + + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context['test'] = 'hello' + return context