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

Use docs.html

This commit is contained in:
Mo 2022-05-30 17:02:00 +02:00
parent d9268f17a9
commit 0847970587
2 changed files with 4 additions and 4 deletions

View file

@ -194,14 +194,14 @@ class AssistantUserView(SecureAssistantModelView):
class AssistantDocsView(SecureAssistantBaseView): class AssistantDocsView(SecureAssistantBaseView):
@expose("/") @expose("/")
def index(self): def index(self):
return self.render("docs/assistant_container.html") return self.render("docs/docs.html", role="assistant")
assistantSpace.add_view( assistantSpace.add_view(
AssistantAppointmentView(Appointment, db.session, endpoint="assistant_appointment", url="appointment") AssistantAppointmentView(Appointment, db.session, endpoint="assistant_appointment", url="appointment")
) )
assistantSpace.add_view( assistantSpace.add_view(
AssistantExperimentMarkView(ExperimentMark, db.session, endpoint="assistant_experimentmark", url="experimentmark") AssistantExperimentMarkView(ExperimentMark, db.session, endpoint="assistant_experimentmark", url="experiment_mark")
) )
assistantSpace.add_view(AssistantUserView(User, db.session, endpoint="assistant_user", url="user")) assistantSpace.add_view(AssistantUserView(User, db.session, endpoint="assistant_user", url="user"))
assistantSpace.add_view(AssistantDocsView(name="Docs", endpoint="assistant_docs", url="docs")) assistantSpace.add_view(AssistantDocsView(name="Docs", endpoint="assistant_docs", url="docs"))

View file

@ -2,11 +2,11 @@
{% extends "admin/master.html" %} {% extends "admin/master.html" %}
{% block body %} {% block body %}
{{ information(current_user, active_semester_repr, role="assistant") }} {{ information(current_user, active_semester_repr, role=role) }}
<hr> <hr>
{% include "docs/assistant.html" %} {% include "docs/" + role + ".html" %}
{{ footer|safe }} {{ footer|safe }}
{% endblock body %} {% endblock body %}