- Timestamp:
- 4 Jul 2023, 21:05:54 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/browser.py
r17460 r17465 91 91 'cbt_date', 92 92 'jamb_age', 93 'jamb_subjects',94 'jamb_score',93 #'jamb_subjects', 94 #'jamb_score', 95 95 #'jamb_reg_number', 96 96 'aggregate') … … 130 130 form_fields = form_fields.omit(field) 131 131 form_fields['notice'].custom_widget = BytesDisplayWidget 132 if self.context.__parent__.application_category == 'rnnurse': 133 form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2') 132 134 #form_fields['perm_address'].custom_widget = BytesDisplayWidget 133 135 if not getattr(self.context, 'student_id'): … … 165 167 for field in UG_OMIT_PDF_FIELDS: 166 168 form_fields = form_fields.omit(field) 169 if self.context.__parent__.application_category == 'rnnurse': 170 form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2') 171 if self.context.__parent__.application_category == 'ndnurse': 172 form_fields = form_fields.omit('course2') 167 173 if not getattr(self.context, 'student_id'): 168 174 form_fields = form_fields.omit('student_id') … … 205 211 for field in UG_OMIT_MANAGE_FIELDS: 206 212 form_fields = form_fields.omit(field) 213 if self.context.__parent__.application_category == 'rnnurse': 214 form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2') 215 if self.context.__parent__.application_category == 'ndnurse': 216 form_fields = form_fields.omit('course2') 207 217 form_fields['student_id'].for_display = True 208 218 form_fields['applicant_id'].for_display = True … … 236 246 for field in UG_OMIT_EDIT_FIELDS: 237 247 form_fields = form_fields.omit(field) 248 if self.context.__parent__.application_category == 'rnnurse': 249 form_fields = form_fields.omit('jamb_reg_number', 'jamb_subjects', 'jamb_score', 'course2') 250 if self.context.__parent__.application_category == 'ndnurse': 251 form_fields = form_fields.omit('course2') 238 252 form_fields['applicant_id'].for_display = True 239 253 form_fields['reg_number'].for_display = True
Note: See TracChangeset for help on using the changeset viewer.