Changeset 17465 for main/kofacustom.edocons/trunk/src
- Timestamp:
- 4 Jul 2023, 21:05:54 (18 months ago)
- Location:
- main/kofacustom.edocons/trunk/src/kofacustom/edocons
- Files:
-
- 3 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 -
main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/interfaces.py
r17460 r17465 194 194 required = True, 195 195 ) 196 #course2 = schema.Choice(197 #title = _(u'2nd Choice Course of Study'),198 #source = AppCatCertificateSource(),199 #required = False,200 #)196 course2 = schema.Choice( 197 title = _(u'2nd Choice Course of Study'), 198 source = AppCatCertificateSource(), 199 required = False, 200 ) 201 201 202 202 fst_sit_fname = schema.TextLine( … … 684 684 required = True, 685 685 readonly = False, 686 ) 687 688 jamb_reg_number = schema.TextLine( 689 title = _(u'JAMB Registration Number'), 690 required = True, 691 constraint=validate_jamb_reg_number, 692 ) 693 694 jamb_subjects = schema.Text( 695 title = _(u'Subjects and Scores'), 696 required = True, 697 ) 698 699 jamb_score = schema.Int( 700 title = _(u'Total JAMB Score'), 701 required = True, 686 702 ) 687 703 -
main/kofacustom.edocons/trunk/src/kofacustom/edocons/utils/utils.py
r17453 r17465 23 23 """A collection of methods subject to customization. 24 24 """ 25 26 APP_CATS_DICT = { 27 'basic': 'UAS, PUTME, PUDE, PCE, PRENCE', 28 'no': 'No Application', 29 'rnnurse': 'RN Nursing', 30 'ndnurse': 'ND Nursing', 31 } 25 32 26 33 DEGREES_DICT = {
Note: See TracChangeset for help on using the changeset viewer.