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)
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)
class ExamPositionInlineForm(WTForm): __source_class__ = ExamPosition name = TextField() job_role = select_for(ExamJobRole) inscription_price = DecimalField() salary = DecimalField() places = IntegerField()
class QuestionForm(form_for(Question, exclude=['type'])): exam = select_for(Exam) knowledge_area = select_for(KnowledgeArea) discipline = select_for(Discipline) subject = select_for(Subject)
class ExamPositionForm(form_for(ExamPosition)): job_role = select_for(ExamJobRole) announcement = select_for(Announcement)
class CalendarEventInlineForm(WTForm): __source_class__ = CalendarEvent trigger = select_for(CalendarEventTrigger) date = DateTimePickerField(format='%d/%m/%Y %H:%M')
class SubjectForm(form_for(Subject)): discipline = select_for(Discipline)
class DisciplineForm(form_for(Discipline)): knowledge_area = select_for(KnowledgeArea)