Ignore:
Timestamp:
28 Jun 2016, 17:00:24 (8 years ago)
Author:
Henrik Bettermann
Message:

Add button.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py

    r13996 r13997  
    3333from waeup.kofa.interfaces import IPDF
    3434from waeup.kofa.applicants.interfaces import IApplicant
     35from waeup.kofa.browser.viewlets import ManageActionButton
    3536from waeup.aaue.interfaces import MessageFactory as _
    3637from kofacustom.nigeria.applicants.browser import (
     
    344345    grok.template('applicantcheckstatus')
    345346
     347class PaymentReceiptActionButton(ManageActionButton):
     348    grok.order(8) # This button should always be the last one.
     349    grok.context(ICustomApplicant)
     350    grok.view(CustomApplicantDisplayFormPage)
     351    grok.require('waeup.viewApplication')
     352    icon = 'actionicon_pdf.png'
     353    text = _('Download screening invitation letter')
     354    target = 'screening_invitation.pdf'
     355
     356    @property
     357    def target_url(self):
     358        if not self.context.screening_date:
     359            return ''
     360        return self.view.url(self.view.context, self.target)
    346361
    347362class ExportScreeningInvitationLetter(UtilityView, grok.View):
     
    349364    This form page is available only in AAUE.
    350365    """
    351     grok.context(IApplicant)
     366    grok.context(ICustomApplicant)
    352367    grok.name('screening_invitation.pdf')
    353368    grok.require('waeup.viewApplication')
     
    364379<br /><br /><br /><br /><font size='12'>
    365380Dear %s,
    366 <br /><br /><br />
    367 You are invited for your screening exercise on:
    368381<br /><br />
    369 <strong>%s</strong>.
     382You are invited for your screening exercise.
    370383<br /><br />
    371 Please bring along this letter of invitation to the %s
     384<strong>Date/Time: %s
    372385<br /><br />
    373 on your screening date.
    374 <br /><br /><br />
    375 Signed,
     386Venue: %s
     387</strong>
    376388<br /><br />
    377 xyz<br />
     389Please bring along this letter of invitation on your screening date.
    378390</font>
    379391
Note: See TracChangeset for help on using the changeset viewer.