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

Set all views url

This commit is contained in:
Mo 2022-05-30 17:02:16 +02:00
parent 0847970587
commit 99b2647d6e

View file

@ -1536,26 +1536,26 @@ class AnalysisView(SecureAdminBaseView):
class DocsView(SecureAdminBaseView):
@expose("/")
def index(self):
return self.render("docs/admin.html")
return self.render("docs/docs.html", role="admin")
adminSpace.add_view(StudentView(Student, db.session))
adminSpace.add_view(PartStudentView(PartStudent, db.session))
adminSpace.add_view(GroupView(Group, db.session))
adminSpace.add_view(GroupExperimentView(GroupExperiment, db.session))
adminSpace.add_view(AppointmentView(Appointment, db.session))
adminSpace.add_view(ExperimentMarkView(ExperimentMark, db.session))
adminSpace.add_view(ExperimentView(Experiment, db.session))
adminSpace.add_view(SemesterExperimentView(SemesterExperiment, db.session))
adminSpace.add_view(SemesterView(Semester, db.session))
adminSpace.add_view(PartView(Part, db.session))
adminSpace.add_view(AssistantView(Assistant, db.session))
adminSpace.add_view(AdminView(Admin, db.session))
adminSpace.add_view(UserView(User, db.session))
adminSpace.add_view(ProgramView(Program, db.session))
adminSpace.add_view(ImportView(name="Import"))
adminSpace.add_view(ActionsView(name="Actions"))
adminSpace.add_view(AnalysisView(name="Analysis"))
adminSpace.add_view(DocsView(name="Docs"))
adminSpace.add_view(StudentView(Student, db.session, url="student"))
adminSpace.add_view(PartStudentView(PartStudent, db.session, url="part_student"))
adminSpace.add_view(GroupView(Group, db.session, url="group"))
adminSpace.add_view(GroupExperimentView(GroupExperiment, db.session, url="group_experiment"))
adminSpace.add_view(AppointmentView(Appointment, db.session, url="appointment"))
adminSpace.add_view(ExperimentMarkView(ExperimentMark, db.session, url="experiment_mark"))
adminSpace.add_view(ExperimentView(Experiment, db.session, url="experiment"))
adminSpace.add_view(SemesterExperimentView(SemesterExperiment, db.session, url="semester_experiment"))
adminSpace.add_view(SemesterView(Semester, db.session, url="semester"))
adminSpace.add_view(PartView(Part, db.session, url="part"))
adminSpace.add_view(AssistantView(Assistant, db.session, url="assistant"))
adminSpace.add_view(AdminView(Admin, db.session, url="admin"))
adminSpace.add_view(UserView(User, db.session, url="user"))
adminSpace.add_view(ProgramView(Program, db.session, url="program"))
adminSpace.add_view(ImportView(name="Import", url="import"))
adminSpace.add_view(ActionsView(name="Actions", url="actions"))
adminSpace.add_view(AnalysisView(name="Analysis", url="analysis"))
adminSpace.add_view(DocsView(name="Docs", url="docs"))
initActiveSemesterMenuLinks(adminSpace)