Changeset 17612


Ignore:
Timestamp:
13 Oct 2023, 08:25:57 (15 months ago)
Author:
Henrik Bettermann
Message:

Add UTME (JAMB) Result upload widgets.

File:
1 edited

Legend:

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

    r17594 r17612  
    4848class AdmissionSlipActionButton(AdmissionSlipActionButton):
    4949    grok.require('waeup.managePortal')
     50
     51#  UTME (JAMB) Result
     52
     53class JAMBResultDisplay(StudentFileDisplay):
     54    """ UTME (JAMB) Result display viewlet.
     55    """
     56    grok.order(19)
     57    label = _(u' UTME (JAMB) Result')
     58    title = _(u' UTME (JAMB) Result')
     59    download_name = u'jamb_result'
     60
     61class JAMBResultSlip(JAMBResultDisplay):
     62    grok.view(ExportPDFClearanceSlip)
     63
     64class JAMBResultUpload(StudentFileUpload):
     65    """UTME (JAMB) Result upload viewlet.
     66    """
     67    grok.order(19)
     68    label = _(u' UTME (JAMB) Result')
     69    title = _(u' UTME (JAMB) Result Scan')
     70    mus = 1024 * 250
     71    download_name = u'jamb_result'
     72
     73class JAMBResultImage(StudentImage):
     74    """Renders UTME (JAMB) Result scan.
     75    """
     76    grok.name('jamb_result')
     77    download_name = u'jamb_result'
Note: See TracChangeset for help on using the changeset viewer.