Changeset 8077
- Timestamp:
- 9 Apr 2012, 11:07:20 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/applicants/browser.py
r8054 r8077 22 22 FriendlyDateWidget, FriendlyDateDisplayWidget, 23 23 FriendlyDatetimeDisplayWidget) 24 from waeup. kofa.widgets.phonewidget import PhoneWidget24 from waeup.custom.widgets.phonewidget import PhoneWidget 25 25 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 26 26 OnlinePaymentCallbackPage, ExportPDFPage, … … 93 93 form_fields['student_id'].for_display = True 94 94 form_fields['applicant_id'].for_display = True 95 form_fields['phone'].custom_widget = PhoneWidget96 95 return form_fields 97 96 -
main/waeup.custom/trunk/src/waeup/custom/students/browser.py
r7998 r8077 25 25 StudentClearanceManageFormPage, StudentClearanceEditFormPage, 26 26 StudentClearanceDisplayFormPage, OnlinePaymentCallbackPage, 27 ExportPDFClearanceSlipPage) 27 ExportPDFClearanceSlipPage, StudentBaseManageFormPage, 28 StudentBaseEditFormPage) 28 29 from waeup.kofa.students.viewlets import RequestCallbackActionButton 29 30 from waeup.custom.students.interfaces import ( 30 IStudent , IStudentPersonal,31 IStudentBase, IStudent, IStudentPersonal, 31 32 IUGStudentClearance,IPGStudentClearance, 32 33 ) 33 34 from waeup.custom.interfaces import MessageFactory as _ 35 from waeup.custom.widgets.phonewidget import PhoneWidget 34 36 35 37 class RequestCallbackActionButton(RequestCallbackActionButton): … … 45 47 def update(self): 46 48 return 49 50 class StudentBaseManageFormPage(StudentBaseManageFormPage): 51 """ View to manage student base data 52 """ 53 form_fields = grok.AutoFields(IStudentBase).omit('student_id') 54 form_fields['phone'].custom_widget = PhoneWidget 55 56 class StudentBaseEditFormPage(StudentBaseEditFormPage): 57 """ View to edit student base data 58 """ 59 form_fields = grok.AutoFields(IStudentBase).select( 60 'email', 'phone') 61 form_fields['phone'].custom_widget = PhoneWidget 47 62 48 63 class StudentPersonalDisplayFormPage(StudentPersonalDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.