Ignore:
Timestamp:
17 Jul 2022, 08:50:14 (2 years ago)
Author:
Henrik Bettermann
Message:

Add continuous assessment (ca) field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py

    r16977 r17025  
    2929    StudyLevelEditFormPage, StudyLevelDisplayFormPage, StudyLevelManageFormPage,
    3030    StudentBasePDFFormPage, ExportPDFCourseRegistrationSlip,
    31     CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
     31    CourseTicketDisplayFormPage, CourseTicketManageFormPage,
     32    StudentTriggerTransitionFormPage,
    3233    PaymentsManageFormPage, msave, emit_lock_message)
    3334from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket
     
    4950    ICustomStudentStudyLevel,
    5051    ICustomUGStudentClearance,
    51     ICustomPGStudentClearance)
     52    ICustomPGStudentClearance,
     53    ICustomCourseTicket)
    5254from kofacustom.unidel.interfaces import MessageFactory as _
    5355
     
    151153                [_('Faculty Officer\'s Signature')],
    152154                [_('Student\'s Signature')])
     155
     156class CustomCourseTicketDisplayFormPage(CourseTicketDisplayFormPage):
     157    """ Page to display course tickets
     158    """
     159
     160    @property
     161    def form_fields(self):
     162        return grok.AutoFields(ICustomCourseTicket).omit('course_category',
     163            'ticket_session')
     164
     165class CustomCourseTicketManageFormPage(CourseTicketManageFormPage):
     166    """ Page to manage course tickets
     167    """
     168   
     169    form_fields = grok.AutoFields(ICustomCourseTicket).omit('course_category')
     170    form_fields['title'].for_display = True
     171    form_fields['fcode'].for_display = True
     172    form_fields['dcode'].for_display = True
     173    form_fields['semester'].for_display = True
     174    form_fields['passmark'].for_display = True
     175    form_fields['credits'].for_display = True
     176    form_fields['mandatory'].for_display = False
     177    form_fields['automatic'].for_display = True
     178    form_fields['carry_over'].for_display = True
     179    form_fields['ticket_session'].for_display = True
Note: See TracChangeset for help on using the changeset viewer.