diff --git a/advlabdb/customClasses.py b/advlabdb/customClasses.py index 5323152..48b2fd4 100644 --- a/advlabdb/customClasses.py +++ b/advlabdb/customClasses.py @@ -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() diff --git a/advlabdb/templates/admin_details.html b/advlabdb/templates/admin_details.html new file mode 100644 index 0000000..ffede7b --- /dev/null +++ b/advlabdb/templates/admin_details.html @@ -0,0 +1,7 @@ +{% from "macros.html" import information %} +{% extends "admin/model/details.html" %} + +{% block body %} +{{information(current_user, userActiveSemester, role="admin")}} +{{ super() }} +{% endblock %} \ No newline at end of file diff --git a/advlabdb/templates/assistant_details.html b/advlabdb/templates/assistant_details.html new file mode 100644 index 0000000..111f0ab --- /dev/null +++ b/advlabdb/templates/assistant_details.html @@ -0,0 +1,7 @@ +{% from "macros.html" import information %} +{% extends "admin/model/details.html" %} + +{% block body %} +{{information(current_user, userActiveSemester, role="assistant")}} +{{ super() }} +{% endblock %} \ No newline at end of file