1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Add custom details templates

This commit is contained in:
Mo 2022-03-03 03:13:06 +01:00
parent e1d1ee2f84
commit 98d52f34c9
3 changed files with 15 additions and 0 deletions

View file

@ -149,6 +149,7 @@ class SecureAdminModelView(CustomModelView):
list_template = "admin_list.html"
create_template = "admin_create.html"
edit_template = "admin_edit.html"
details_template = "admin_details.html"
def is_accessible(self):
return adminViewIsAccessible()

View file

@ -0,0 +1,7 @@
{% from "macros.html" import information %}
{% extends "admin/model/details.html" %}
{% block body %}
{{information(current_user, userActiveSemester, role="admin")}}
{{ super() }}
{% endblock %}

View file

@ -0,0 +1,7 @@
{% from "macros.html" import information %}
{% extends "admin/model/details.html" %}
{% block body %}
{{information(current_user, userActiveSemester, role="assistant")}}
{{ super() }}
{% endblock %}