Ignore:
Timestamp:
3 Dec 2014, 05:14:41 (10 years ago)
Author:
Henrik Bettermann
Message:

Add clearance invitation slip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r11613 r12121  
    2121from waeup.kofa.browser.viewlets import ManageActionButton
    2222from waeup.uniben.students.interfaces import (
    23     ICustomStudentStudyCourse, ICustomStudentStudyLevel)
     23    ICustomStudentStudyCourse, ICustomStudentStudyLevel,
     24    ICustomStudent, )
    2425from waeup.kofa.students.viewlets import (
    2526    FileDisplay, FileUpload, Image)
    2627from waeup.kofa.students.browser import (
    2728    ExportPDFClearanceSlipPage, StudyCourseDisplayFormPage,
    28     StudyLevelDisplayFormPage)
     29    StudyLevelDisplayFormPage, StudentClearanceDisplayFormPage)
    2930
    3031from kofacustom.nigeria.interfaces import MessageFactory as _
     
    5657    def target_url(self):
    5758        return self.view.url(self.view.context, self.target)
     59
     60
     61class ClearanceInvitationSlipActionButton(ManageActionButton):
     62    grok.order(5)
     63    grok.context(ICustomStudent)
     64    grok.view(StudentClearanceDisplayFormPage)
     65    grok.require('waeup.viewStudent')
     66    icon = 'actionicon_pdf.png'
     67    text = _('Download clearance invitation slip')
     68    target = 'clearance_invitation_slip.pdf'
     69
    5870
    5971# JAMB Letter
Note: See TracChangeset for help on using the changeset viewer.