diff --git a/.gitignore b/.gitignore index 1dbb8ac..8d9f576 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,11 @@ areas/migrations/* !areas/migrations/__init__.py areas/__pycache__/* + +adm/migrations/* +!adm/migrations/__init__.py +adm/__pycache__/* + standards/migrations/* !standards/migrations/__init__.py standards/__pycache__/* diff --git a/adm/__init__.py b/adm/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/adm/admin.py b/adm/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/adm/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/adm/apps.py b/adm/apps.py new file mode 100644 index 0000000..da47601 --- /dev/null +++ b/adm/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class AdmConfig(AppConfig): + name = 'adm' diff --git a/adm/migrations/__init__.py b/adm/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/adm/models.py b/adm/models.py new file mode 100644 index 0000000..c2edf13 --- /dev/null +++ b/adm/models.py @@ -0,0 +1,12 @@ +from django.db import models +from django.utils import timezone +# Create your models here. +# MAIN RECOVERDIR PASSWORD AND CONFIG +class MainStatistic(models.Model): + staticdate = models.DateField(default=timezone.now) + agencys = models.IntegerField(default=0) + users = models.IntegerField(default=0) + standards = models.IntegerField(default=0) + chatmessages = models.IntegerField(default=0) + + diff --git a/adm/templates/adm/adm_agencys.html b/adm/templates/adm/adm_agencys.html new file mode 100644 index 0000000..a602d77 --- /dev/null +++ b/adm/templates/adm/adm_agencys.html @@ -0,0 +1,50 @@ +{% extends "adm/adm_base.html" %} +{% block content %} +
| Agenturname | +Mitarbeiter | +Standards | +
|---|---|---|
| {{ele.name}} | ++ | + + + |
| Datum | +Agenturen | +Benutzer | +Standards | +Chatnachrichten | +
|---|---|---|---|---|
| {{ele.staticdate|date:"d.m.Y"}} | +{{ele.agencys}} | +{{ele.users}} | +{{ele.standards}} | +{{ele.chatmessages}} | +