Ignore:
Timestamp:
2 Feb 2022, 07:21:42 (3 years ago)
Author:
Henrik Bettermann
Message:

Adjust form.

File:
1 edited

Legend:

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

    r16664 r16769  
    8383    'screening_venue',
    8484    'screening_date',
     85    'cbt_score',
     86    'cbt_venue',
     87    'cbt_date',
    8588    'jamb_age',
    8689    'jamb_subjects',
     
    113116        if not getattr(self.context, 'screening_date') or self._not_paid():
    114117            form_fields = form_fields.omit('screening_date')
     118        if not getattr(self.context, 'cbt_score'):
     119            form_fields = form_fields.omit('cbt_score')
     120        if not getattr(self.context, 'cbt_venue') or self._not_paid():
     121            form_fields = form_fields.omit('cbt_venue')
     122        if not getattr(self.context, 'cbt_date') or self._not_paid():
     123            form_fields = form_fields.omit('cbt_date')
    115124        return form_fields
    116125
     
    135144        if not getattr(self.context, 'screening_date'):
    136145            form_fields = form_fields.omit('screening_date')
     146        if not getattr(self.context, 'cbt_score'):
     147            form_fields = form_fields.omit('cbt_score')
     148        if not getattr(self.context, 'cbt_venue'):
     149            form_fields = form_fields.omit('cbt_venue')
     150        if not getattr(self.context, 'cbt_date'):
     151            form_fields = form_fields.omit('cbt_date')
    137152        return form_fields
    138153
Note: See TracChangeset for help on using the changeset viewer.