Ignore:
Timestamp:
29 Jan 2024, 11:38:51 (8 months ago)
Author:
Henrik Bettermann
Message:

Modify application form. Upon application, the candidate must be seventeen years old (17).

File:
1 edited

Legend:

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

    r17465 r17683  
    7373# UG students are all undergraduate students.
    7474UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + (
    75     'jamb_subjects_list', 'programme_type')
     75    'jamb_subjects', 'programme_type')
    7676UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('phone',)
    7777UG_OMIT_MANAGE_FIELDS = (
    7878    'special_application',
    79     'jamb_subjects_list',
     79    'jamb_subjects',
    8080    'programme_type',
    8181    #'course1', 'course2', # these 2 have been added and later removed again
     
    9191    'cbt_date',
    9292    'jamb_age',
    93     #'jamb_subjects',
    94     #'jamb_score',
    95     #'jamb_reg_number',
    9693    'aggregate')
    9794
     
    131128            form_fields['notice'].custom_widget = BytesDisplayWidget
    132129        if self.context.__parent__.application_category == 'rnnurse':
    133             form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2')
     130            form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects_list', 'jamb_score', 'course2')
    134131        #form_fields['perm_address'].custom_widget = BytesDisplayWidget
    135132        if not getattr(self.context, 'student_id'):
     
    168165                form_fields = form_fields.omit(field)
    169166        if self.context.__parent__.application_category == 'rnnurse':
    170             form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2')
     167            form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects_list', 'jamb_score', 'course2')
    171168        if self.context.__parent__.application_category == 'ndnurse':
    172169            form_fields = form_fields.omit('course2')
     
    212209                form_fields = form_fields.omit(field)
    213210        if self.context.__parent__.application_category == 'rnnurse':
    214             form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2')
     211            form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects_list', 'jamb_score', 'course2')
    215212        if self.context.__parent__.application_category == 'ndnurse':
    216213            form_fields = form_fields.omit('course2')
     
    247244                form_fields = form_fields.omit(field)
    248245        if self.context.__parent__.application_category == 'rnnurse':
    249             form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2')
     246            form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects_list', 'jamb_score', 'course2')
    250247        if self.context.__parent__.application_category == 'ndnurse':
    251248            form_fields = form_fields.omit('course2')
Note: See TracChangeset for help on using the changeset viewer.