1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Added admin index template

This commit is contained in:
Mo 2021-05-17 21:48:12 +02:00
parent 45c3d55470
commit ad5b3117fd
2 changed files with 11 additions and 1 deletions

View file

@ -23,7 +23,10 @@ app.config["DEBUG_TB_INTERCEPT_REDIRECTS"] = False #DEBUG
DebugToolbarExtension(app) #DEBUG DebugToolbarExtension(app) #DEBUG
from advlabdb import customClasses from advlabdb import customClasses
admin = Admin(app, name="Admin@AdvLabDB", template_mode='bootstrap3', index_view=customClasses.SecureAdminIndexView()) admin = Admin(app,
name="Admin@AdvLabDB",
template_mode="bootstrap3",
index_view=customClasses.SecureAdminIndexView(template="admin_index.html"))
from advlabdb import models from advlabdb import models

View file

@ -0,0 +1,7 @@
{% extends "admin/index.html" %}
{% block body %}
User's active semester: {{userActiveSemester(flashWarning=True).label}}
<h3>Welcome back, commander!</h3>
{{super()}}
{% endblock %}