diff --git a/routes.py b/routes.py index b6584e0..ea81ae7 100644 --- a/routes.py +++ b/routes.py @@ -315,6 +315,12 @@ def admin_results(): } return render_template("admin_results.html", rows=rows, stats=stats, songs=songs) +@bp.route("/admin/list") +@admin_required +def admin_list(): + songs = load_songs_list() + return render_template("admin_tasksList.html", songs=songs) + @bp.route("/api/admin/add", methods=["POST"]) @admin_required def api_admin_add(): diff --git a/templates/admin.html b/templates/admin.html index d3227ef..cc29a8c 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -5,6 +5,7 @@

{% block admin_title %}Admin{% endblock %}

+ {% block admin_header %}{% endblock %}
@@ -13,7 +14,7 @@ {% block admin_content %} -Unteraufgabe hinzufügen +Unteraufgaben Auswertung {% endblock %} diff --git a/templates/admin_tasksList.html b/templates/admin_tasksList.html new file mode 100644 index 0000000..bf91f8f --- /dev/null +++ b/templates/admin_tasksList.html @@ -0,0 +1,13 @@ +{% extends "admin.html" %} + +{% block admin_title %}Unteraufgaben{% endblock %} + +{% block admin_header %} +Unteraufgabe hinzufügen +{% endblock %} + +{% block admin_content %} + +{{ songs }} + +{% endblock %} \ No newline at end of file