Changeset 16544


Ignore:
Timestamp:
13 Jul 2021, 12:31:57 (3 years ago)
Author:
Henrik Bettermann
Message:

More fields are required.

File:
1 edited

Legend:

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

    r16540 r16544  
    635635    email = TextLineChoice(
    636636        title = _(u'Email Address'),
    637         required = False,
    638637        constraint=validate_email,
    639638        source = contextual_email_source,
     639        required = True,
    640640        )
    641641    date_of_birth = FormattedDate(
     
    643643        required = True,
    644644        show_year = True,
     645        )
     646
     647    parents_name = schema.TextLine(
     648        title = _(u'Full Name'),
     649        required = True,
     650        readonly = False,
     651        )
     652
     653    parents_email = schema.ASCIILine(
     654        title = _(u'Email Address'),
     655        required = True,
     656        constraint=validate_email,
     657        )
     658
     659    parents_phone = PhoneNumber(
     660        title = _(u'Phone'),
     661        required = True,
    645662        )
    646663
     
    662679        title = _(u'Full Name'),
    663680        description = _(u'As it is written on your JAMB result slip.'),
    664         required = False,
    665         readonly = False,
     681        required = True,
     682        readonly = False,
     683        )
     684
     685    jamb_score = schema.Int(
     686        title = _(u'Total JAMB Score'),
     687        required = True,
     688        )
     689
     690    jamb_reg_number = schema.TextLine(
     691        title = _(u'JAMB Registration Number'),
     692        required = True,
     693        constraint=validate_jamb_reg_number,
     694        description = _(u'Use all CAPS when entering the field.'),
    666695        )
    667696
     
    678707ICustomUGApplicantEdit[
    679708    'jamb_fname'].order =  ICustomUGApplicant['jamb_fname'].order
     709ICustomUGApplicantEdit[
     710    'jamb_score'].order =  ICustomUGApplicant['jamb_score'].order
     711ICustomUGApplicantEdit[
     712    'jamb_reg_number'].order =  ICustomUGApplicant['jamb_reg_number'].order
     713ICustomUGApplicantEdit[
     714    'parents_name'].order =  ICustomUGApplicant['parents_name'].order
     715ICustomUGApplicantEdit[
     716    'parents_email'].order =  ICustomUGApplicant['parents_email'].order
     717ICustomUGApplicantEdit[
     718    'parents_phone'].order =  ICustomUGApplicant['parents_phone'].order
    680719
    681720class ICustomPGApplicantEdit(ICustomPGApplicant):
Note: See TracChangeset for help on using the changeset viewer.