feat: add admin_add
This commit is contained in:
1 parent
9b3428d0ab
commit
36196a736a
3 files changed
+13
No files matched your search
@@ -271,3 +271,8 @@ def debug_reset():
|
||||
abort(404) # im normalen Betrieb existiert die Route praktisch nicht
|
||||
session.clear()
|
||||
return redirect(url_for("main.login"))
|
||||
|
||||
@bp.route("/admin/add")
|
||||
@admin_required
|
||||
def admin_add():
|
||||
return render_template("admin_add.html")
|
||||
@@ -7,6 +7,7 @@
|
||||
<h2>Auswertung</h2>
|
||||
<div class="admin-actions">
|
||||
<a class="button" href="{{ url_for('main.admin_export') }}">CSV exportieren</a>
|
||||
<a class="button" href="{{ url_for('main.admin_add') }}">Unteraufgabe hinzufügen</a>
|
||||
<form method="post" action="{{ url_for('main.admin_logout') }}">
|
||||
<button type="submit" class="secondary">Abmelden</button>
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style/admin.css') }}">
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user