Changeset 14153 for main


Ignore:
Timestamp:
2 Sep 2016, 11:28:50 (8 years ago)
Author:
Henrik Bettermann
Message:

Customize IPUTMEApplicantEdit.

File:
1 edited

Legend:

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

    r14141 r14153  
    460460    """
    461461
    462 class IPUTMEApplicantEdit(IPUTMEApplicantEdit):
     462class IPUTMEApplicantEdit(ICustomUGApplicant):
    463463    """An undergraduate applicant interface for editing.
    464464
     
    472472    """
    473473
     474    email = schema.ASCIILine(
     475        title = _(u'Email Address'),
     476        required = True,
     477        constraint=validate_email,
     478        )
     479    date_of_birth = FormattedDate(
     480        title = _(u'Date of Birth'),
     481        required = True,
     482        show_year = True,
     483        )
     484    nationality = schema.Choice(
     485        source = nats_vocab,
     486        title = _(u'Nationality'),
     487        required = True,
     488        )
     489
     490IPUTMEApplicantEdit[
     491    'date_of_birth'].order =  ICustomUGApplicant['date_of_birth'].order
     492IPUTMEApplicantEdit[
     493    'email'].order =  ICustomUGApplicant['email'].order
     494IPUTMEApplicantEdit[
     495    'nationality'].order =  ICustomUGApplicant['nationality'].order
     496
    474497class ICustomApplicantUpdateByRegNo(INigeriaApplicantUpdateByRegNo):
    475498    """Representation of an applicant.
Note: See TracChangeset for help on using the changeset viewer.