refactor: own admin_title per page

This commit is contained in:
robin committed 2026-11-13 12:31:30 +01:00
1 parent ea7cef7f3b
commit 6673986662
3 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='style/admin.css') }}">
<div class="admin-head">
<h2>Admin</h2>
<h2>{% block admin_title %}Admin{% endblock %}</h2>
<div class="admin-actions">
<form method="post" action="{{ url_for('main.admin_logout') }}">
<button type="submit" class="secondary">Abmelden</button>
+3 -4
View File
@@ -1,9 +1,8 @@
{% extends "admin.html" %}
{% block admin_title %}Unteraufgabe hinzufügen{% endblock %}
{% block admin_content %}
<link rel="stylesheet" href="{{ url_for('static', filename='style/admin.css') }}">
<h2>Unteraufgabe hinzufügen</h2>
<form class="form" id="form">
<label for="titel">Titel</label>
<input id="title" name="title" type="text" autocomplete="off" required autofocus>
+3
View File
@@ -1,4 +1,7 @@
{% extends "admin.html" %}
{% block admin_title %}Auswertung{% endblock %}
{% block admin_content %}
<a class="button" href="{{ url_for('main.admin_export') }}">CSV exportieren</a>