mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Add custom details templates
This commit is contained in:
parent
e1d1ee2f84
commit
98d52f34c9
3 changed files with 15 additions and 0 deletions
|
@ -149,6 +149,7 @@ class SecureAdminModelView(CustomModelView):
|
||||||
list_template = "admin_list.html"
|
list_template = "admin_list.html"
|
||||||
create_template = "admin_create.html"
|
create_template = "admin_create.html"
|
||||||
edit_template = "admin_edit.html"
|
edit_template = "admin_edit.html"
|
||||||
|
details_template = "admin_details.html"
|
||||||
|
|
||||||
def is_accessible(self):
|
def is_accessible(self):
|
||||||
return adminViewIsAccessible()
|
return adminViewIsAccessible()
|
||||||
|
|
7
advlabdb/templates/admin_details.html
Normal file
7
advlabdb/templates/admin_details.html
Normal 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 %}
|
7
advlabdb/templates/assistant_details.html
Normal file
7
advlabdb/templates/assistant_details.html
Normal 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 %}
|
Loading…
Reference in a new issue