Add statistics module
This commit is contained in:
parent
ea7a306522
commit
e9bee08c1d
|
|
@ -51,6 +51,7 @@ INSTALLED_APPS = [
|
|||
'rooms',
|
||||
'assignments',
|
||||
'basicknowledge',
|
||||
'statistics',
|
||||
|
||||
'wagtail.contrib.forms',
|
||||
'wagtail.contrib.redirects',
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,114 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Statistics</h1>
|
||||
|
||||
<h2>Ergebnisse</h2>
|
||||
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Total Anzahl erfasste Ergebnisse (nur für Schüler gespeichert)
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Total Anzahl erfasste Ergebnisse (mit Lehrperson geteilt)
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Ergebnisse pro Modul (nur für Schüler gespeichert)
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Ergebnisse pro Modul (mit Lehrperson geteilt)
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Ergebnisse pro Klasse (nur für Schüler gespeichert)
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Ergebnisse pro Klasse (mit Lehrperson geteilt)
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Räume</h2>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Räume pro Klasse
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Raumeinträge pro Klasse
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Raumeinträge pro Raum
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>Inhaltsblöcke</h2>
|
||||
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Total Anzahl erfasste Inhaltsblöcke
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Anzahl erfasste Inhaltsblöcke pro Klasse
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
<div class="statistic">
|
||||
<div class="statistic__description">
|
||||
Wieviele Personen haben einen oder mehrere Inhaltsblöcke erfasst?
|
||||
</div>
|
||||
<div class="statistic__value">
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
from django.conf.urls import url
|
||||
|
||||
from statistics.views import StatisticsView
|
||||
|
||||
app_name = 'api'
|
||||
urlpatterns = [
|
||||
url(r'^$', StatisticsView.as_view()),
|
||||
]
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue