Changeset 16259 for main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
- Timestamp:
- 30 Sep 2020, 06:53:05 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py
r16258 r16259 23 23 from zope.formlib.textwidgets import BytesDisplayWidget 24 24 from hurry.workflow.interfaces import IWorkflowInfo 25 from waeup.kofa.interfaces import (REQUESTED, IExtFileStore, IKofaUtils,26 academic_sessions_vocab)25 from waeup.kofa.interfaces import (REQUESTED, ADMITTED, CLEARANCE, 26 IExtFileStore, IKofaUtils, academic_sessions_vocab) 27 27 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget 28 28 from waeup.kofa.browser.layout import ( … … 78 78 """ View to edit student base data 79 79 """ 80 form_fields = grok.AutoFields(ICustomStudentBase).select( 81 'email', 'email2', 'parents_email', 'phone',) 80 @property 81 def form_fields(self): 82 form_fields = grok.AutoFields(ICustomStudentBase).select( 83 'email', 'email2', 'parents_email', 'phone',) 84 if not self.context.state in (ADMITTED, CLEARANCE): 85 form_fields['parents_email'].for_display = True 86 return form_fields 82 87 83 88 class CustomExportPDFCourseRegistrationSlip( … … 119 124 """ Page to edit personal data 120 125 """ 121 form_fields = grok.AutoFields(ICustomStudentPersonalEdit).omit('personal_updated') 126 form_fields = grok.AutoFields(ICustomStudentPersonalEdit).omit( 127 'personal_updated') 122 128 123 129 def update(self):
Note: See TracChangeset for help on using the changeset viewer.