Changeset 18345 for main/kofacustom.unidel
- Timestamp:
- 13 Oct 2026, 13:00:41 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py
r18344 r18345 312 312 grok.context(ICustomStudentStudyLevel) 313 313 314 form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit(315 'total_credits', 'gpa', 'level','imported_gpa', 'imported_cgpa')316 form_fields[317 'validation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')318 319 314 @property 320 315 def translated_values(self): … … 336 331 # return False 337 332 return True 333 334 @property 335 def form_fields(self): 336 if self.show_results: 337 form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit( 338 'total_credits', 'level','imported_gpa', 'imported_cgpa') 339 else: 340 form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit( 341 'total_credits', 'gpa', 'level','imported_gpa', 'imported_cgpa') 342 form_fields[ 343 'validation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 344 return form_fields 345 338 346 339 347 class CustomStudyLevelManageFormPage(StudyLevelManageFormPage):
Note: See TracChangeset for help on using the changeset viewer.
