Changeset 10640


Ignore:
Timestamp:
23 Sep 2013, 05:29:14 (11 years ago)
Author:
Henrik Bettermann
Message:

Make more fields required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/interfaces.py

    r10619 r10640  
    2626from waeup.kofa.interfaces import (
    2727    SimpleKofaVocabulary, academic_sessions_vocab, validate_email)
    28 from waeup.kofa.schema import FormattedDate, TextLineChoice
     28from waeup.kofa.schema import FormattedDate, TextLineChoice, PhoneNumber
    2929from waeup.kofa.students.vocabularies import nats_vocab, GenderSource
    3030from waeup.kofa.applicants.interfaces import contextual_reg_num_source
     
    286286    respective form page.
    287287    """
    288 
     288    email = schema.ASCIILine(
     289        title = _(u'Email Address'),
     290        required = True,
     291        constraint=validate_email,
     292        )
     293    phone = PhoneNumber(
     294        title = _(u'Phone'),
     295        description = u'',
     296        required = True,
     297        )
    289298    sex = schema.Choice(
    290299        title = _(u'Sex'),
     
    297306        required = True,
    298307        )
    299 
     308    olevel_type = schema.Choice(
     309        title = _(u'Qualification Obtained'),
     310        required = True,
     311        readonly = False,
     312        vocabulary = exam_types,
     313        )
     314    jamb_subjects = schema.Text(
     315        title = _(u'Subjects and Scores'),
     316        description = _(u'(one subject with score per line)'),
     317        required = True,
     318        )
     319
     320ICustomUGApplicantEdit[
     321    'email'].order =  ICustomUGApplicant['email'].order
     322ICustomUGApplicantEdit[
     323    'phone'].order =  ICustomUGApplicant['phone'].order
    300324ICustomUGApplicantEdit[
    301325    'course1'].order =  ICustomUGApplicant['course1'].order
    302326ICustomUGApplicantEdit[
    303327    'sex'].order =  ICustomUGApplicant['sex'].order
     328ICustomUGApplicantEdit[
     329    'olevel_type'].order =  ICustomUGApplicant['olevel_type'].order
     330ICustomUGApplicantEdit[
     331    'jamb_subjects'].order =  ICustomUGApplicant['jamb_subjects'].order
    304332
    305333class ICustomPGApplicantEdit(INigeriaPGApplicantEdit):
Note: See TracChangeset for help on using the changeset viewer.