Changeset 9377


Ignore:
Timestamp:
22 Oct 2012, 05:15:19 (12 years ago)
Author:
Henrik Bettermann
Message:

Add file upload viewlet and edit some labels.

File:
1 edited

Legend:

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

    r9241 r9377  
    228228    download_name = u'alr_scan'
    229229
    230 # Certificate
     230# JAMB Letter/Certificate
    231231
    232232class CertificateDisplay(FileDisplay):
    233     """Certificate display viewlet.
     233    """JAMB Letter/Certificate display viewlet.
    234234    """
    235235    grok.order(9)
    236     label = _(u'Certificate')
    237     title = _(u'Certificate')
     236    label = _(u'JAMB Letter/Certificate')
     237    title = _(u'JAMB Letter/Certificate')
    238238    download_name = u'cert'
    239239
     
    242242
    243243class CertificateUpload(FileUpload):
    244     """Certificate upload viewlet.
     244    """JAMB Letter/Certificate upload viewlet.
    245245    """
    246246    grok.order(9)
    247     label = _(u'Certificate')
    248     title = _(u'Certificate Scan')
     247    label = _(u'JAMB Letter/Certificate')
     248    title = _(u'JAMB Letter/Certificate Scan')
    249249    mus = 1024 * 150
    250250    download_name = u'cert'
    251251
    252252class CertificateImage(Image):
    253     """Renders Certificate scan.
     253    """Renders JAMB Letter/Certificate scan.
    254254    """
    255255    grok.name('cert')
     
    388388    """
    389389    grok.order(14)
    390     label = _(u'Referee Letter')
    391     title = _(u'Referee Letter')
     390    label = _(u'Guarantor/Referee Letter')
     391    title = _(u'Guarantor/Referee Letter')
    392392    download_name = u'ref_let'
    393393
     
    399399    """
    400400    grok.order(14)
    401     label = _(u'Referee Letter')
    402     title = _(u'Referee Letter Scan')
     401    label = _(u'Guarantor/Referee Letter')
     402    title = _(u'Guarantor/Referee Letter Scan')
    403403    mus = 1024 * 150
    404404    download_name = u'ref_let'
     
    480480    download_name = u'ref_let3'
    481481
    482 # Statutory Declaration of Good Conduct
     482# Affidavit (former Statutory Declaration) of Good Conduct
    483483
    484484class StatutoryDeclarationDisplay(FileDisplay):
     
    486486    """
    487487    grok.order(17)
    488     label = _(u'Statutory Declaration of Good Conduct')
    489     title = _(u'Statutory Declaration of Good Conduct')
     488    label = _(u'Affidavit of Good Conduct')
     489    title = _(u'Affidavit of Good Conduct')
    490490    download_name = u'stat_dec'
    491491
     
    497497    """
    498498    grok.order(17)
    499     label = _(u'Statutory Declaration of Good Conduct')
    500     title = _(u'Statutory Declaration of Good Conduct Scan')
     499    label = _(u'Affidavit of Good Conduct')
     500    title = _(u'Affidavit of Good Conduct Scan')
    501501    mus = 1024 * 150
    502502    download_name = u'stat_dec'
    503503
    504504class StatutoryDeclarationImage(Image):
    505     """Renders Statutory Declaration of Good Conduct scan.
     505    """Renders Affidavit of Good Conduct scan.
    506506    """
    507507    grok.name('stat_dec')
    508508    download_name = u'stat_dec'
    509509
     510# Affidavit of Non-Menbership of Secret Cults
     511
     512class SecrCultsStatementDisplay(FileDisplay):
     513    """Affidavit of Non-Menbership of Secret Cults display viewlet.
     514    """
     515    grok.order(18)
     516    label = _(u'Affidavit of Non-Menbership of Secret Cults')
     517    title = _(u'Affidavit of Non-Menbership of Secret Cults')
     518    download_name = u'secr_cults'
     519
     520class SecrCultsStatementSlip(SecrCultsStatementDisplay):
     521    grok.view(ExportPDFClearanceSlipPage)
     522
     523class SecrCultsStatementUpload(FileUpload):
     524    """Affidavit of Non-Menbership of Secret Cults upload viewlet.
     525    """
     526    grok.order(18)
     527    label = _(u'Affidavit of Non-Menbership of Secret Cults')
     528    title = _(u'Affidavit of Non-Menbership of Secret Cults Scan')
     529    mus = 1024 * 150
     530    download_name = u'secr_cults'
     531
     532class ResultStatementImage(Image):
     533    """Renders Affidavit of Non-Menbership of Secret Cults scan.
     534    """
     535    grok.name('secr_cults')
     536    download_name = u'secr_cults'
     537
    510538# Letter of Admission (PG Students only)
    511539
     
    513541    """Letter of Admission display viewlet.
    514542    """
    515     grok.order(18)
     543    grok.order(19)
    516544    label = _(u'Letter of Admission')
    517545    title = _(u'Letter of Admission')
     
    524552    """Letter of Admission upload viewlet.
    525553    """
    526     grok.order(18)
     554    grok.order(19)
    527555    label = _(u'Letter of Admission')
    528556    title = _(u'Letter of Admission Scan')
Note: See TracChangeset for help on using the changeset viewer.