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:
parent
d9268f17a9
commit
0847970587
2 changed files with 4 additions and 4 deletions
|
@ -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"))
|
||||||
|
|
|
@ -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 %}
|
Loading…
Reference in a new issue