Changeset 9236


Ignore:
Timestamp:
27 Sep 2012, 06:24:30 (12 years ago)
Author:
Henrik Bettermann
Message:

Set order of widgets properly.

File:
1 edited

Legend:

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

    r8862 r9236  
    2424from kofacustom.nigeria.interfaces import MessageFactory as _
    2525
     26# Acceptance Letter
     27
     28class AcceptanceLetterDisplay(FileDisplay):
     29    """Acceptance Letter display viewlet.
     30    """
     31    grok.order(2)
     32    label = _(u'Acceptance Letter')
     33    title = _(u'Acceptance Letter Scan')
     34    download_name = u'acc_let'
     35
     36class AcceptanceLetterSlip(AcceptanceLetterDisplay):
     37    grok.view(ExportPDFClearanceSlipPage)
     38
     39class AcceptanceLetterUpload(FileUpload):
     40    """AcceptanceLetter upload viewlet.
     41    """
     42    grok.order(2)
     43    label = _(u'Acceptance Letter')
     44    title = _(u'Acceptance Letter Scan')
     45    mus = 1024 * 150
     46    download_name = u'acc_let'
     47    tab_redirect = '?tab2'
     48
     49class AcceptanceLetterImage(Image):
     50    """Renders acceptance letter scan.
     51    """
     52    grok.name('acc_let')
     53    download_name = u'acc_let'
     54
    2655# LGA Identification
    2756
     
    2958    """LGA Identification display viewlet.
    3059    """
    31     grok.order(1)
     60    grok.order(3)
    3261    label = _(u'LGA Identification')
    3362    title = _(u'LGA Identification Scan')
     
    4069    """LGA Identification upload viewlet.
    4170    """
    42     grok.order(2)
     71    grok.order(3)
    4372    label = _(u'LGA Identification')
    4473    title = _(u'LGA Identification Scan')
     
    5786    """First Sitting Result display viewlet.
    5887    """
    59     grok.order(1)
     88    grok.order(4)
    6089    label = _(u'First Sitting Result')
    6190    title = _(u'First Sitting Result')
     
    6897    """First Sitting Result upload viewlet.
    6998    """
    70     grok.order(2)
     99    grok.order(4)
    71100    label = _(u'First Sitting Result')
    72101    title = _(u'First Sitting Result Scan')
     
    85114    """Second Sitting Result display viewlet.
    86115    """
    87     grok.order(1)
     116    grok.order(5)
    88117    label = _(u'Second Sitting Result')
    89118    title = _(u'Second Sitting Result')
     
    96125    """Second Sitting Result upload viewlet.
    97126    """
    98     grok.order(2)
     127    grok.order(5)
    99128    label = _(u'Second Sitting Result')
    100129    title = _(u'Second Sitting Result Scan')
     
    113142    """Higher Qualification Result display viewlet.
    114143    """
    115     grok.order(1)
     144    grok.order(6)
    116145    label = _(u'Higher Qualification Result')
    117146    title = _(u'Higher Qualification Result')
     
    124153    """Higher Qualification Result upload viewlet.
    125154    """
    126     grok.order(2)
     155    grok.order(6)
    127156    label = _(u'Higher Qualification Result')
    128157    title = _(u'Higher Qualification Result Scan')
     
    141170    """Second Higher Qualification Result display viewlet.
    142171    """
    143     grok.order(1)
     172    grok.order(7)
    144173    label = _(u'Second Higher Qualification Result')
    145174    title = _(u'Second Higher Qualification Result')
     
    152181    """Second Higher Qualification Result upload viewlet.
    153182    """
    154     grok.order(2)
     183    grok.order(7)
    155184    label = _(u'Second Higher Qualification Result')
    156185    title = _(u'Second Higher Qualification Result Scan')
     
    176205    """Advanced Level Result display viewlet.
    177206    """
    178     grok.order(1)
     207    grok.order(8)
    179208    label = _(u'Advanced Level Result')
    180209    title = _(u'Advanced Level Result')
     
    187216    """Advanced Level Result upload viewlet.
    188217    """
    189     grok.order(2)
     218    grok.order(8)
    190219    label = _(u'Advanced Level Result')
    191220    title = _(u'Advanced Level Result Scan')
     
    204233    """Certificate display viewlet.
    205234    """
    206     grok.order(1)
     235    grok.order(9)
    207236    label = _(u'Certificate')
    208237    title = _(u'Certificate')
    209     download_name = u'certificate'
     238    download_name = u'cert'
    210239
    211240class CertificateSlip(CertificateDisplay):
     
    215244    """Certificate upload viewlet.
    216245    """
    217     grok.order(2)
     246    grok.order(9)
    218247    label = _(u'Certificate')
    219248    title = _(u'Certificate Scan')
    220249    mus = 1024 * 150
    221     download_name = u'certificate'
     250    download_name = u'cert'
    222251
    223252class CertificateImage(Image):
    224253    """Renders Certificate scan.
    225254    """
    226     grok.name('certificate')
    227     download_name = u'certificate'
     255    grok.name('cert')
     256    download_name = u'cert'
    228257
    229258# Second Certificate (PG Students only)
     
    232261    """ Second Certificate display viewlet.
    233262    """
    234     grok.order(1)
     263    grok.order(10)
    235264    label = _(u'Second Certificate')
    236265    title = _(u'Second Certificate')
    237     download_name = u'certificate2'
     266    download_name = u'cert2'
    238267
    239268class SecondCertificateSlip(SecondCertificateDisplay):
     
    243272    """Second Certificate upload viewlet.
    244273    """
    245     grok.order(2)
     274    grok.order(10)
    246275    label = _(u'Second Certificate')
    247276    title = _(u'Second Certificate Scan')
    248277    mus = 1024 * 150
    249     download_name = u'certificate2'
     278    download_name = u'cert2'
    250279
    251280    @property
     
    259288    """Renders Second Certificate scan.
    260289    """
    261     grok.name('certificate2')
    262     download_name = u'certificate2'
     290    grok.name('cert2')
     291    download_name = u'cert2'
    263292
    264293# Third Certificate (PG Students only)
     
    267296    """ Third Certificate display viewlet.
    268297    """
    269     grok.order(1)
     298    grok.order(11)
    270299    label = _(u'Third Certificate')
    271300    title = _(u'Third Certificate')
    272     download_name = u'certificate3'
     301    download_name = u'cert3'
    273302
    274303class ThirdCertificateSlip(ThirdCertificateDisplay):
     
    278307    """Third Certificate upload viewlet.
    279308    """
    280     grok.order(2)
     309    grok.order(11)
    281310    label = _(u'Third Certificate')
    282311    title = _(u'Third Certificate Scan')
    283312    mus = 1024 * 150
    284     download_name = u'certificate3'
     313    download_name = u'cert3'
    285314
    286315    @property
     
    294323    """Renders Third Certificate scan.
    295324    """
    296     grok.name('certificate3')
    297     download_name = u'certificate3'
     325    grok.name('cert3')
     326    download_name = u'cert3'
    298327
    299328# Evidence of Name
     
    302331    """Evidence of Name display viewlet.
    303332    """
    304     grok.order(1)
     333    grok.order(12)
    305334    label = _(u'Evidence of Name')
    306335    title = _(u'Evidence of Name')
     
    313342    """Evidence of Name upload viewlet.
    314343    """
    315     grok.order(2)
     344    grok.order(12)
    316345    label = _(u'Evidence of Name')
    317346    title = _(u'Evidence of Name Scan')
     
    330359    """Result Statement display viewlet.
    331360    """
    332     grok.order(1)
     361    grok.order(13)
    333362    label = _(u'Result Statement')
    334363    title = _(u'Result Statement')
     
    341370    """Result Statement upload viewlet.
    342371    """
    343     grok.order(2)
     372    grok.order(13)
    344373    label = _(u'Result Statement')
    345374    title = _(u'Result Statement Scan')
     
    358387    """Referee Letter display viewlet.
    359388    """
    360     grok.order(1)
     389    grok.order(14)
    361390    label = _(u'Referee Letter')
    362391    title = _(u'Referee Letter')
     
    369398    """Referee Letter upload viewlet.
    370399    """
    371     grok.order(2)
     400    grok.order(14)
    372401    label = _(u'Referee Letter')
    373402    title = _(u'Referee Letter Scan')
     
    386415    """Second Referee Letter display viewlet.
    387416    """
    388     grok.order(1)
     417    grok.order(15)
    389418    label = _(u'Second Referee Letter')
    390419    title = _(u'Second Referee Letter')
     
    397426    """Referee Letter upload viewlet.
    398427    """
    399     grok.order(2)
     428    grok.order(15)
    400429    label = _(u'Second Referee Letter')
    401430    title = _(u'Second Referee Letter Scan')
     
    421450    """Third Referee Letter display viewlet.
    422451    """
    423     grok.order(1)
     452    grok.order(16)
    424453    label = _(u'Third Referee Letter')
    425454    title = _(u'Third Referee Letter')
     
    432461    """Referee Letter upload viewlet.
    433462    """
    434     grok.order(2)
     463    grok.order(16)
    435464    label = _(u'Third Referee Letter')
    436465    title = _(u'Third Referee Letter Scan')
     
    456485    """Statutory Declaration of Good Conduct display viewlet.
    457486    """
    458     grok.order(1)
     487    grok.order(17)
    459488    label = _(u'Statutory Declaration of Good Conduct')
    460489    title = _(u'Statutory Declaration of Good Conduct')
     
    467496    """Statutory Declaration of Good Conduct upload viewlet.
    468497    """
    469     grok.order(2)
     498    grok.order(17)
    470499    label = _(u'Statutory Declaration of Good Conduct')
    471500    title = _(u'Statutory Declaration of Good Conduct Scan')
     
    484513    """Letter of Admission display viewlet.
    485514    """
    486     grok.order(1)
     515    grok.order(18)
    487516    label = _(u'Letter of Admission')
    488517    title = _(u'Letter of Admission')
     
    495524    """Letter of Admission upload viewlet.
    496525    """
    497     grok.order(2)
     526    grok.order(18)
    498527    label = _(u'Letter of Admission')
    499528    title = _(u'Letter of Admission Scan')
Note: See TracChangeset for help on using the changeset viewer.