From 36196a736a5b253bdd627b01a26817fb07c6c4e4 Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Thu, 5 Nov 2026 14:57:41 +0100 Subject: [PATCH] feat: add admin_add --- routes.py | 7 ++++++- templates/admin.html | 1 + templates/admin_add.html | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 templates/admin_add.html diff --git a/routes.py b/routes.py index 4bccc8c..c4537a4 100644 --- a/routes.py +++ b/routes.py @@ -270,4 +270,9 @@ def debug_reset(): if not current_app.debug: abort(404) # im normalen Betrieb existiert die Route praktisch nicht session.clear() - return redirect(url_for("main.login")) \ No newline at end of file + return redirect(url_for("main.login")) + +@bp.route("/admin/add") +@admin_required +def admin_add(): + return render_template("admin_add.html") \ No newline at end of file diff --git a/templates/admin.html b/templates/admin.html index d338d72..9c01534 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -7,6 +7,7 @@

Auswertung

CSV exportieren + Unteraufgabe hinzufügen
diff --git a/templates/admin_add.html b/templates/admin_add.html new file mode 100644 index 0000000..318a936 --- /dev/null +++ b/templates/admin_add.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} +{% block content %} + + + + +{% endblock %} \ No newline at end of file