Changeset 17748
- Timestamp:
- 25 Apr 2024, 13:12:05 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py
r17723 r17748 33 33 from kofacustom.nigeria.applicants.browser import ( 34 34 NigeriaExportPDFPaymentSlipPage, NigeriaApplicantManageFormPage, 35 NigeriaApplicantDisplayFormPage, NigeriaApplicantEditFormPage) 35 NigeriaApplicantDisplayFormPage, NigeriaApplicantEditFormPage, 36 NigeriaApplicantRegistrationPage) 36 37 37 38 from waeup.fceokene.interfaces import MessageFactory as _ … … 44 45 ) 45 46 from waeup.fceokene.applicants.interfaces import ( 46 ICustomUGApplicant, ICustomUGApplicantEdit, 47 ICustomUGApplicant, 48 ICustomUGApplicantEdit, 49 ICustomApplicantRegisterUpdate, 47 50 BEC_OMIT_DISPLAY_FIELDS, 48 51 BEC_OMIT_PDF_FIELDS, … … 250 253 super(CustomApplicantEditFormPage, self).dataNotComplete(data) 251 254 return 255 256 class CustomApplicantRegistrationPage(NigeriaApplicantRegistrationPage): 257 258 @property 259 def form_fields(self): 260 form_fields = None 261 if self.context.mode == 'update': 262 form_fields = grok.AutoFields(ICustomApplicantRegisterUpdate).select( 263 'lastname','reg_number','email') 264 else: #if self.context.mode == 'create': 265 form_fields = grok.AutoFields(ICustomUGApplicantEdit).select( 266 'firstname', 'middlename', 'lastname', 'email', 'phone') 267 return form_fields
Note: See TracChangeset for help on using the changeset viewer.