Ignore:
Timestamp:
4 Jun 2020, 06:28:08 (4 years ago)
Author:
Henrik Bettermann
Message:

Make phone number a required field.

File:
1 edited

Legend:

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

    r16063 r16105  
    401401    """
    402402
     403    phone = PhoneNumber(
     404        title = _(u'Phone'),
     405        description = u'',
     406        required = True,
     407        )
     408    email = schema.ASCIILine(
     409        title = _(u'Email Address'),
     410        required = True,
     411        constraint=validate_email,
     412        )
     413    date_of_birth = FormattedDate(
     414        title = _(u'Date of Birth'),
     415        required = True,
     416        show_year = True,
     417        )
     418
     419ICustomUGApplicantEdit[
     420    'date_of_birth'].order = ICustomUGApplicant['date_of_birth'].order
     421ICustomUGApplicantEdit[
     422    'email'].order = ICustomUGApplicant['email'].order
     423ICustomUGApplicantEdit[
     424    'phone'].order =  ICustomUGApplicantEdit['email'].order
     425
    403426class ICustomPGApplicantEdit(ICustomPGApplicant):
    404427    """A postgraduate applicant interface for editing.
     
    413436    """
    414437
     438    phone = PhoneNumber(
     439        title = _(u'Phone'),
     440        description = u'',
     441        required = True,
     442        )
     443    email = schema.ASCIILine(
     444        title = _(u'Email Address'),
     445        required = True,
     446        constraint=validate_email,
     447        )
     448    date_of_birth = FormattedDate(
     449        title = _(u'Date of Birth'),
     450        required = True,
     451        show_year = True,
     452        )
     453
     454ICustomPGApplicantEdit[
     455    'date_of_birth'].order = ICustomPGApplicant['date_of_birth'].order
     456ICustomPGApplicantEdit[
     457    'email'].order = ICustomPGApplicant['email'].order
     458ICustomPGApplicantEdit[
     459    'phone'].order =  ICustomPGApplicantEdit['email'].order
     460
    415461class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment):
    416462    """An applicant payment via payment gateways.
Note: See TracChangeset for help on using the changeset viewer.