Ignore:
Timestamp:
29 Sep 2020, 07:00:27 (4 years ago)
Author:
Henrik Bettermann
Message:

More customizations regarding personal/bio data forms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/interfaces.py

    r16249 r16252  
    5555
    5656class ICustomStudentPersonal(IStudentPersonal):
    57     """Student bio data.
     57    """Student personal/bio data.
    5858
    5959    """
    6060
    6161    is_foreigner = Attribute('True if student is non-Nigerian')
     62
     63    # Duplicated fields from the ICustomStudentBase
     64
     65    email = schema.ASCIILine(
     66        title = _(u'Email'),
     67        required = False,
     68        constraint=validate_email,
     69        )
     70
     71    email2 = schema.ASCIILine(
     72        title = _(u'Second Email'),
     73        required = False,
     74        constraint=validate_email,
     75        )
     76
     77    phone = PhoneNumber(
     78        title = _(u'Phone'),
     79        required = False,
     80        )
     81
     82    parents_email = schema.ASCIILine(
     83        title = _(u"Parents' Email"),
     84        required = False,
     85        constraint=validate_email,
     86        )
     87
     88    # New fields
    6289
    6390    perm_address = schema.Text(
     
    145172    """
    146173
    147 
    148174class ICustomUGStudentClearance(INigeriaUGStudentClearance):
    149175    """Representation of ug student clearance data.
Note: See TracChangeset for help on using the changeset viewer.