- Timestamp:
- 11 Dec 2013, 15:56:06 (11 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py
r10643 r10844 23 23 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget 24 24 from zope.formlib.textwidgets import BytesDisplayWidget 25 from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit 25 26 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 26 27 ApplicantManageFormPage, ApplicantEditFormPage, … … 72 73 @property 73 74 def form_fields(self): 75 if self.context.special: 76 form_fields = grok.AutoFields(IApplicant).select( 77 'applicant_id', 'firstname', 'middlename', 'lastname', 78 'reg_number', 'date_of_birth', 'email', 'special_application') 79 return form_fields 74 80 form_fields = grok.AutoFields(ICustomUGApplicant) 75 81 if self.context.is_nd: … … 123 129 @property 124 130 def form_fields(self): 131 if self.context.special: 132 form_fields = grok.AutoFields(IApplicant).select( 133 'applicant_id', 'firstname', 'middlename', 'lastname', 134 'reg_number', 'date_of_birth', 'email', 'special_application', 135 'locked') 136 return form_fields 125 137 form_fields = grok.AutoFields(ICustomUGApplicant) 126 138 if self.context.is_nd: … … 140 152 @property 141 153 def form_fields(self): 154 155 if self.context.special: 156 form_fields = grok.AutoFields(IApplicantEdit).select( 157 'applicant_id', 'firstname', 'middlename', 'lastname', 158 'reg_number', 'date_of_birth', 'email', 'special_application') 159 return form_fields 142 160 form_fields = grok.AutoFields(ICustomUGApplicantEdit) 143 161 if self.context.is_nd: -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/interfaces.py
r10640 r10844 50 50 'hq_type') 51 51 ND_OMIT_PDF_FIELDS = ND_OMIT_DISPLAY_FIELDS + ('phone',) 52 ND_OMIT_MANAGE_FIELDS = ( )52 ND_OMIT_MANAGE_FIELDS = ('special_application',) 53 53 ND_OMIT_EDIT_FIELDS = ND_OMIT_MANAGE_FIELDS + ND_OMIT_DISPLAY_FIELDS + ( 54 54 'student_id', 'notice', -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/utils.py
r10623 r10844 49 49 'prendpt': ['Pre-Admission Screening: ND Part-Time Forms', 'NDPT'], 50 50 'prejambites': ['Pre-Admission Screening: JAMBITES', 'JMB'], 51 'special': ['Supplementary Payment', 'SP'], 51 52 } 52 53
Note: See TracChangeset for help on using the changeset viewer.