Changeset 17154


Ignore:
Timestamp:
31 Oct 2022, 19:54:13 (23 months ago)
Author:
Henrik Bettermann
Message:

Make many fields required.

File:
1 edited

Legend:

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

    r17105 r17154  
    635635    """
    636636
     637    email = schema.ASCIILine(
     638        title = _(u'Email Address'),
     639        required = True,
     640        constraint=validate_email,
     641        )
     642
     643    phone = PhoneNumber(
     644        title = _(u'Phone'),
     645        description = u'',
     646        required = True,
     647        )
     648
     649    perm_address = schema.Text(
     650        title = _(u'Permanent Address'),
     651        required = True,
     652        )
     653
     654    next_kin_name = schema.TextLine(
     655        title = _(u'Next of Kin Name'),
     656        required = True,
     657        readonly = False,
     658        )
     659
     660    next_kin_relation = schema.TextLine(
     661        title = _(u'Next of Kin Relationship'),
     662        required = True,
     663        readonly = False,
     664        )
     665
     666    next_kin_address = schema.Text(
     667        title = _(u'Next of Kin Address'),
     668        required = True,
     669        readonly = False,
     670        )
     671
     672    next_kin_phone = PhoneNumber(
     673        title = _(u'Next of Kin Phone'),
     674        required = True,
     675        readonly = False,
     676        )
     677
     678ICustomUGApplicantEdit[
     679    'email'].order = ICustomUGApplicant['email'].order
     680ICustomUGApplicantEdit[
     681    'phone'].order = ICustomUGApplicant['phone'].order
     682ICustomUGApplicantEdit[
     683    'perm_address'].order = ICustomUGApplicant['perm_address'].order
     684ICustomUGApplicantEdit[
     685    'next_kin_name'].order = ICustomUGApplicant['next_kin_name'].order
     686ICustomUGApplicantEdit[
     687    'next_kin_relation'].order = ICustomUGApplicant['next_kin_relation'].order
     688ICustomUGApplicantEdit[
     689    'next_kin_address'].order = ICustomUGApplicant['next_kin_address'].order
     690ICustomUGApplicantEdit[
     691    'next_kin_phone'].order = ICustomUGApplicant['next_kin_phone'].order
     692
    637693class ICustomPGApplicantEdit(INigeriaPGApplicantEdit):
    638694    """A postgraduate applicant interface for editing.
Note: See TracChangeset for help on using the changeset viewer.