Changeset 8144
- Timestamp:
- 13 Apr 2012, 15:10:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r8140 r8144 111 111 if cm is not None and cm.startswith('pg'): 112 112 form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked') 113 form_fields['emp_start'].custom_widget = FriendlyDate Widget('le-year')114 form_fields['emp_end'].custom_widget = FriendlyDate Widget('le-year')115 form_fields['emp2_start'].custom_widget = FriendlyDate Widget('le-year')116 form_fields['emp2_end'].custom_widget = FriendlyDate Widget('le-year')113 form_fields['emp_start'].custom_widget = FriendlyDateDisplayWidget('le') 114 form_fields['emp_end'].custom_widget = FriendlyDateDisplayWidget('le') 115 form_fields['emp2_start'].custom_widget = FriendlyDateDisplayWidget('le') 116 form_fields['emp2_end'].custom_widget = FriendlyDateDisplayWidget('le') 117 117 else: 118 118 form_fields = grok.AutoFields(IUGStudentClearance).omit('clearance_locked') 119 119 form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le') 120 form_fields['fst_sit_date'].custom_widget = FriendlyDate Widget('le-year')121 form_fields['scd_sit_date'].custom_widget = FriendlyDate Widget('le-year')122 form_fields['scd_sit_date'].custom_widget = FriendlyDate Widget('le-year')123 form_fields['alr_date'].custom_widget = FriendlyDate Widget('le-year')120 form_fields['fst_sit_date'].custom_widget = FriendlyDateDisplayWidget('le') 121 form_fields['scd_sit_date'].custom_widget = FriendlyDateDisplayWidget('le') 122 form_fields['scd_sit_date'].custom_widget = FriendlyDateDisplayWidget('le') 123 form_fields['alr_date'].custom_widget = FriendlyDateDisplayWidget('le') 124 124 return form_fields 125 125
Note: See TracChangeset for help on using the changeset viewer.