from QLHS import admin

from QLHS.Register.Register import RegisterView

admin.add_view(RegisterView(name="SIGN UP"))
Beispiel #2
0
    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"))
Beispiel #4
0
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Ì"))
Beispiel #5
0
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"))
Beispiel #7
0
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"))
Beispiel #8
0
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"))
Beispiel #9
0
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"))
Beispiel #10
0
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Ì"))