Changeset 17359 for main


Ignore:
Timestamp:
21 Mar 2023, 22:31:54 (20 months ago)
Author:
Henrik Bettermann
Message:

Set required field for teaching practice in CustomApplicantEditFormPage?.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/batching.py

    r16923 r17359  
    3636        """
    3737        result = super(CustomApplicantProcessor, self).required_fields
    38         result.remove('subj_comb')
    39         result.remove('school')
    4038        return result
    4139
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py

    r16931 r17359  
    188188            form_fields['lga'].for_display = True
    189189            form_fields['matric_number'].for_display = True
     190            form_fields['subj_comb'].field.required = True
     191            form_fields['school_tpu'].field.required = True
    190192            return form_fields
    191193        if target == 'utp':
     
    199201            form_fields['lga'].for_display = True
    200202            form_fields['matric_number'].for_display = True
     203            form_fields['subj_comb'].field.required = True
     204            form_fields['school_utp'].field.required = True
    201205            return form_fields
    202206        form_fields = grok.AutoFields(ICustomUGApplicantEdit)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r16927 r17359  
    185185        title = _(u'Subject Combination'),
    186186        source = TPUCertificateSource(),
    187         required = True,
     187        required = False,
    188188        )
    189189
     
    191191        title = _(u'1st Choice TPZ and School'),
    192192        source = TPUSchoolSource(),
    193         required = True,
     193        required = False,
    194194        )
    195195
     
    270270        title = _(u'Subject Combination'),
    271271        source = UTPCertificateSource(),
    272         required = True,
     272        required = False,
    273273        )
    274274
     
    276276        title = _(u'1st Choice UTP and School'),
    277277        source = UTPSchoolSource(),
    278         required = True,
     278        required = False,
    279279        )
    280280
Note: See TracChangeset for help on using the changeset viewer.