from QLHS import admin from QLHS.Register.Register import RegisterView admin.add_view(RegisterView(name="SIGN UP"))
can_edit = True can_delete = True class ScoreView(AuthenticatedView): column_list = (ScoreDetail.score_id, ScoreDetail.score, ScoreDetail.score_type) class RegulationsView(AuthenticatedView): can_create = False can_delete = False can_edit = True admin.add_view( UserView(User, db.session, name="Tài khoản", category="Quản lý GV")) admin.add_view( AuthenticatedView(Teacher, db.session, name="Giáo viên", category="Quản lý GV")) admin.add_view( UserView(Teach, db.session, name="Phân công", category="Quản lý GV")) admin.add_view(AuthenticatedView(Student, db.session, name="Học sinh")) admin.add_view( AuthenticatedView(Grade, db.session, name="Khối học", category="Lớp")) admin.add_view( AuthenticatedView(Class, db.session, name="Lớp học", category="Lớp")) admin.add_view( AuthenticatedView(Subject, db.session, name="Môn học", category="Học")) admin.add_view(
from QLHS import admin, db from QLHS.CustomizeRoleAdmin.MarkCustomize import MarkCustomizes from QLHS.models import Marks admin.add_view(MarkCustomizes(Marks, db.session, name="ĐIỂM MÔN HỌC"))
from QLHS import admin, db from QLHS.CustomizeRoleAdmin.SemesterCustomize import SemesterCustomize from QLHS.models import Semesters admin.add_view(SemesterCustomize(Semesters, db.session, name="HỌC KÌ"))
from QLHS import admin, db from QLHS.CustomizeRoleAdmin.ClassCustomize import ClassCustomizes from QLHS.models import Classes admin.add_view(ClassCustomizes(Classes, db.session, name="LỚP"))
from QLHS import admin from QLHS.Logout.Logout import LogoutView admin.add_view(LogoutView(name="LOG OUT"))
from QLHS import admin, db from QLHS.CustomizeRoleAdmin.SubjectCustomize import SubjectCustomize from QLHS.models import Subjects admin.add_view(SubjectCustomize(Subjects, db.session, name="MÔN HỌC"))
from QLHS import admin, db from QLHS.CustomizeRoleAdmin.GradeCustomize import GradeCustomizes from QLHS.models import Grades admin.add_view(GradeCustomizes(Grades, db.session, name="KHỐI"))
from QLHS import admin, db from QLHS.CustomizeRoleAdmin.StudentCustomize import StudentCustomize from QLHS.models import Students admin.add_view(StudentCustomize(Students, db.session, name="HỌC SINH"))
from QLHS import admin, db from QLHS.CustomizeRoleAdmin.GpaCustomize import GpaCustomize from QLHS.models import Gpas admin.add_view(GpaCustomize(Gpas, db.session, name="ĐIỂM TRUNG BÌNH HỌC KÌ"))