Changeset 14913 for main/kofacustom.dspg


Ignore:
Timestamp:
29 Nov 2017, 10:57:30 (7 years ago)
Author:
Henrik Bettermann
Message:

Add viewlet.

File:
1 edited

Legend:

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

    r14883 r14913  
    166166    grok.name('jamb_result')
    167167    download_name = u'jamb_result'
     168
     169# Additional Document
     170
     171class AdditionalDocDisplay(StudentFileDisplay):
     172    """Additional Document display viewlet.
     173    """
     174    grok.order(19)
     175    label = _(u'Additional Document')
     176    title = _(u'Additional Document')
     177    download_name = u'additional_doc'
     178
     179class AdditionalDocSlip(AdditionalDocDisplay):
     180    grok.view(ExportPDFClearanceSlip)
     181
     182class AdditionalDocUpload(StudentFileUpload):
     183    """Additional Document upload viewlet.
     184    """
     185    grok.order(19)
     186    title = _(u'Additional Document Scan')
     187    mus = 1024 * 250
     188    download_name = u'additional_doc'
     189    label = _(u'Additional Document')
     190
     191class AdditionalDocImage(StudentImage):
     192    """Renders Additional Document scan.
     193    """
     194    grok.name('additional_doc')
     195    download_name = u'additional_doc'
Note: See TracChangeset for help on using the changeset viewer.