- Timestamp:
- 29 Jul 2021, 08:08:22 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/browser.py
r16546 r16559 30 30 RefereeReportAddFormPage, ExportPDFReportSlipPage, ExportPDFReportSlipPage2, 31 31 RefereeReportDisplayFormPage, 32 ApplicantsContainerManageFormPage) 32 ApplicantsContainerManageFormPage, 33 ApplicantAddFormPage) 33 34 from waeup.kofa.applicants.interfaces import ( 34 35 ISpecialApplicant, IApplicantsContainer, AppCatCertificateSource) … … 86 87 ) 87 88 89 JUPEB_OMIT_FIELDS = ( 90 'jamb_age', 91 'jamb_subjects', 92 'jamb_score', 93 'jamb_reg_number', 94 'jamb_subjects_list', 95 'jamb_fname', 96 ) 97 88 98 # PG has its own interface 89 99 PG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + ( … … 184 194 form_fields = grok.AutoFields(ICustomUGApplicant) 185 195 for field in UG_OMIT_DISPLAY_FIELDS: 196 form_fields = form_fields.omit(field) 197 if self.target is not None and self.target == 'pre': 198 for field in JUPEB_OMIT_FIELDS: 186 199 form_fields = form_fields.omit(field) 187 200 #form_fields['perm_address'].custom_widget = BytesDisplayWidget … … 295 308 for field in UG_OMIT_MANAGE_FIELDS: 296 309 form_fields = form_fields.omit(field) 310 if self.target is not None and self.target == 'pre': 311 for field in JUPEB_OMIT_FIELDS: 312 form_fields = form_fields.omit(field) 297 313 form_fields['student_id'].for_display = True 298 314 form_fields['applicant_id'].for_display = True … … 348 364 for field in UG_OMIT_EDIT_FIELDS: 349 365 form_fields = form_fields.omit(field) 366 if self.target is not None and self.target == 'pre': 367 for field in JUPEB_OMIT_FIELDS: 368 form_fields = form_fields.omit(field) 350 369 form_fields['applicant_id'].for_display = True 351 370 form_fields['reg_number'].for_display = True … … 388 407 return form_fields 389 408 409 class CustomApplicantAddFormPage(ApplicantAddFormPage): 410 """Add-form to add an applicant. 411 """ 412 form_fields = grok.AutoFields(ICustomApplicant).select( 413 'firstname', 'middlename', 'lastname', 414 'email', 'phone') 415 390 416 class RefereeReportAddFormPage(RefereeReportAddFormPage): 391 417 """Add-form to add an referee report. This form
Note: See TracChangeset for help on using the changeset viewer.