Changeset 11552
- Timestamp:
- 28 Mar 2014, 09:45:41 (11 years ago)
- Location:
- main/waeup.uniben/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/CHANGES.txt
r11537 r11552 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Disable editing date_of_birth, nationality and lga for UG students. 6 8 7 9 * Show current level in student base data section on clearance slip. -
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r11537 r11552 44 44 from waeup.uniben.students.interfaces import ( 45 45 ICustomStudentOnlinePayment, ICustomStudentStudyCourse, 46 ICustomStudentStudyLevel) 46 ICustomStudentStudyLevel, 47 ICustomUGStudentClearance, 48 ICustomPGStudentClearance) 47 49 from waeup.uniben.interfaces import MessageFactory as _ 48 50 … … 61 63 """ View to edit student clearance data by student 62 64 """ 65 66 @property 67 def form_fields(self): 68 if self.context.is_postgrad: 69 form_fields = grok.AutoFields(ICustomPGStudentClearance).omit( 70 'clearance_locked', 'nysc_location', 'clr_code', 'officer_comment') 71 else: 72 form_fields = grok.AutoFields(ICustomUGStudentClearance).omit( 73 'clearance_locked', 'clr_code', 'officer_comment') 74 form_fields['date_of_birth'].for_display = True 75 form_fields['nationality'].for_display = True 76 form_fields['lga'].for_display = True 77 return form_fields 63 78 64 79 def dataNotComplete(self):
Note: See TracChangeset for help on using the changeset viewer.