Changeset 15700 for main


Ignore:
Timestamp:
24 Oct 2019, 09:19:46 (5 years ago)
Author:
Henrik Bettermann
Message:

Add second O level result upload widget.

File:
1 edited

Legend:

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

    r15289 r15700  
    8888    label = _(u'ND Result')
    8989    title = _(u'ND Result Scan')
    90     mus = 1024 * 250
    9190    download_name = u'nd_result'
    9291
     
    124123    label = _(u'O Level Result')
    125124    title = _(u'O Level Result Scan')
    126     mus = 1024 * 250
    127125    download_name = u'o_level_result'
    128126
     
    132130    grok.name('o_level_result')
    133131    download_name = u'o_level_result'
     132
     133# O Level Result 2
     134
     135class OLevelResult2Display(StudentFileDisplay):
     136    """O Level Result 2 display viewlet.
     137    """
     138    grok.order(19)
     139    label = _(u'O Level Result 2')
     140    title = _(u'O Level Result 2')
     141    download_name = u'o_level_result_2'
     142
     143class OLevelResult2Slip(OLevelResult2Display):
     144    grok.view(ExportPDFClearanceSlip)
     145
     146class OLevelResult2Upload(StudentFileUpload):
     147    """O Level Result 2 upload viewlet.
     148    """
     149    grok.order(19)
     150    label = _(u'O Level Result 2')
     151    title = _(u'O Level Result Scan 2')
     152    download_name = u'o_level_result_2'
     153
     154class OLevelResult2Image(StudentImage):
     155    """Renders O Level Result 2 scan.
     156    """
     157    grok.name('o_level_result_2')
     158    download_name = u'o_level_result_2'
    134159
    135160# IT Letter
     
    152177    label = _(u'IT Letter')
    153178    title = _(u'IT Letter Scan')
    154     mus = 1024 * 250
    155179    download_name = u'it_letter'
    156180
     
    187211    grok.order(19)
    188212    title = _(u'JAMB Result Scan')
    189     mus = 1024 * 250
    190213    download_name = u'jamb_result'
    191214
     
    222245    grok.order(19)
    223246    title = _(u'Additional Document Scan')
    224     mus = 1024 * 250
    225247    download_name = u'additional_doc'
    226248    label = _(u'Additional Document')
Note: See TracChangeset for help on using the changeset viewer.