Пример #1
0
class ExamForm(form_for(Exam, exclude=['calendar_event_association'])):
    announcement = select_for(Announcement)
    exam_position = select_for(ExamPosition)
    level = select_for(ExamLevel)
    exam_file = UploadField()
    answers_file = UploadField()
    calendar_events = field_list(CalendarEventInlineForm, 3)
Пример #2
0
class AnnouncementForm(
        form_for(Announcement, exclude=['calendar_event_association'])):
    examining_board = select_for(ExaminingBoard)
    promoter = select_for(Promoter)
    federal_unit = select_for(FederalUnit)
    phase = select_for(CalendarEventTrigger)
    announcement_file = UploadField()
    calendar_events = field_list(CalendarEventInlineForm, 3)
    positions = field_list(ExamPositionInlineForm, 3)
Пример #3
0
class ExamPositionInlineForm(WTForm):
    __source_class__ = ExamPosition
    name = TextField()
    job_role = select_for(ExamJobRole)
    inscription_price = DecimalField()
    salary = DecimalField()
    places = IntegerField()
Пример #4
0
class QuestionForm(form_for(Question, exclude=['type'])):
    exam = select_for(Exam)
    knowledge_area = select_for(KnowledgeArea)
    discipline = select_for(Discipline)
    subject = select_for(Subject)
Пример #5
0
class ExamPositionForm(form_for(ExamPosition)):
    job_role = select_for(ExamJobRole)
    announcement = select_for(Announcement)
Пример #6
0
class CalendarEventInlineForm(WTForm):
    __source_class__ = CalendarEvent
    trigger = select_for(CalendarEventTrigger)
    date = DateTimePickerField(format='%d/%m/%Y %H:%M')
Пример #7
0
class SubjectForm(form_for(Subject)):
    discipline = select_for(Discipline)
Пример #8
0
class DisciplineForm(form_for(Discipline)):
    knowledge_area = select_for(KnowledgeArea)