Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
class ChoiceForm(form_for(Choice)):
    text = TextField()
    is_answer = BooleanField()
Ejemplo n.º 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)
Ejemplo n.º 5
0
class ExamPositionForm(form_for(ExamPosition)):
    job_role = select_for(ExamJobRole)
    announcement = select_for(Announcement)
Ejemplo n.º 6
0
class DisciplineForm(form_for(Discipline)):
    knowledge_area = select_for(KnowledgeArea)
Ejemplo n.º 7
0
class SubjectForm(form_for(Subject)):
    discipline = select_for(Discipline)
Ejemplo n.º 8
0
class ExamJobRoleForm(form_for(ExamJobRole)):
    pass
Ejemplo n.º 9
0
class KnowledgeAreaForm(form_for(KnowledgeArea)):
    pass
Ejemplo n.º 10
0
class PromoterForm(form_for(Promoter)):
    image = UploadImageField()
Ejemplo n.º 11
0
class ExaminingBoardForm(form_for(ExaminingBoard)):
    image = UploadImageField()
Ejemplo n.º 12
0
class BooleanQuestionForm(QuestionForm,
                          form_for(BooleanQuestion, exclude=['type'])):
    pass
Ejemplo n.º 13
0
class MultipleChoiceQuestionForm(QuestionForm,
                                 form_for(MultipleChoiceQuestion,
                                          exclude=['type'])):
    pass
Ejemplo n.º 14
0
class SingleChoiceQuestionForm(QuestionForm,
                               form_for(SingleChoiceQuestion,
                                        exclude=['type', 'right_choice'])):
    choices = field_list(ChoiceInlineForm, 3)