Changeset 8128
- Timestamp:
- 12 Apr 2012, 10:15:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8096 r8128 225 225 pnav = 3 226 226 227 form_fields = grok.AutoFields(IApplicantsContainer).omit('title') 227 form_fields = grok.AutoFields(IApplicantsContainer).omit('title') 228 228 form_fields['startdate'].custom_widget = FriendlyDateDisplayWidget('le') 229 229 form_fields['enddate'].custom_widget = FriendlyDateDisplayWidget('le') … … 874 874 def form_fields(self): 875 875 form_fields = None 876 if self.context.mode == 'create': 876 if self.context.mode == 'update': 877 form_fields = grok.AutoFields(IApplicantRegisterUpdate).select( 878 'firstname','reg_number','email') 879 else: #if self.context.mode == 'create': 877 880 form_fields = grok.AutoFields(IApplicantEdit).select( 878 881 'firstname', 'middlename', 'lastname', 'email', 'phone') 879 882 form_fields['phone'].custom_widget = PhoneWidget 880 elif self.context.mode == 'update': 881 form_fields = grok.AutoFields(IApplicantRegisterUpdate).select( 882 'firstname','reg_number','email') 883 883 884 return form_fields 884 885
Note: See TracChangeset for help on using the changeset viewer.