Feat/auto generate edited files #2
No files matched your search
@@ -270,4 +270,9 @@ def debug_reset():
|
|||||||
if not current_app.debug:
|
if not current_app.debug:
|
||||||
abort(404) # im normalen Betrieb existiert die Route praktisch nicht
|
abort(404) # im normalen Betrieb existiert die Route praktisch nicht
|
||||||
session.clear()
|
session.clear()
|
||||||
return redirect(url_for("main.login"))
|
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>
|
<h2>Auswertung</h2>
|
||||||
<div class="admin-actions">
|
<div class="admin-actions">
|
||||||
<a class="button" href="{{ url_for('main.admin_export') }}">CSV exportieren</a>
|
<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') }}">
|
<form method="post" action="{{ url_for('main.admin_logout') }}">
|
||||||
<button type="submit" class="secondary">Abmelden</button>
|
<button type="submit" class="secondary">Abmelden</button>
|
||||||
</form>
|
</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