- Timestamp:
- 12 Sep 2024, 10:14:59 (3 months ago)
- Location:
- main/kofacustom.unidel/trunk/src/kofacustom/unidel/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py
r17843 r17924 41 41 from kofacustom.nigeria.students.browser import ( 42 42 NigeriaOnlinePaymentDisplayFormPage, 43 NigeriaStudentBaseDisplayFormPage, 43 44 NigeriaStudentBaseManageFormPage, 44 45 NigeriaStudentClearanceEditFormPage, … … 52 53 from kofacustom.unidel.students.interfaces import ( 53 54 ICustomStudent, 55 ICustomStudentBase, 54 56 ICustomStudentOnlinePayment, 55 57 ICustomStudentStudyCourse, … … 59 61 ICustomCourseTicket) 60 62 from kofacustom.unidel.interfaces import MessageFactory as _ 63 64 class CustomStudentBaseDisplayFormPage(NigeriaStudentBaseDisplayFormPage): 65 """ Page to display student base data 66 """ 67 form_fields = grok.AutoFields(ICustomStudentBase).omit( 68 'password', 'suspended', 'suspended_comment', 69 'flash_notice', 'provisionally_cleared') 70 form_fields[ 71 'financial_clearance_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 72 form_fields[ 73 'final_clearance_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 74 75 class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage): 76 """ View to manage student base data 77 """ 78 form_fields = grok.AutoFields(ICustomStudentBase).omit( 79 'student_id', 'adm_code', 'suspended', 80 'financially_cleared_by', 'financial_clearance_date', 81 'finally_cleared_by', 'final_clearance_date') 61 82 62 83 class CustomBedTicketAddPage(NigeriaBedTicketAddPage): -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/interfaces.py
r17921 r17924 36 36 37 37 email2 = schema.ASCIILine( 38 title = _(u'Institution Email'),38 title = _(u'Institutional Email'), 39 39 required = False, 40 40 constraint=validate_email, … … 42 42 43 43 ICustomStudentBase['email2'].order = ICustomStudentBase[ 44 ' phone'].order44 'email'].order 45 45 46 46 class ICustomStudentPersonal(INigeriaStudentPersonal):
Note: See TracChangeset for help on using the changeset viewer.