refactor: own admin_title per page
This commit is contained in:
1 parent
ea7cef7f3b
commit
6673986662
3 files changed
+7
-5
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user