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:
parent
45c3d55470
commit
ad5b3117fd
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
7
advlabdb/templates/admin_index.html
Normal file
7
advlabdb/templates/admin_index.html
Normal 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 %}
|
Loading…
Reference in a new issue