Ignore:
Timestamp:
1 Dec 2022, 08:51:54 (22 months ago)
Author:
Henrik Bettermann
Message:

Add USSD payment infos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/viewlets.py

    r17091 r17190  
    2121from waeup.kofa.applicants.viewlets import ApplicantsAuthTab
    2222from kofacustom.lpng.applicants.interfaces import ICustomApplicant
    23 from kofacustom.lpng.applicants.browser import ApplicantDisplayFormPage
     23from kofacustom.lpng.applicants.browser import (ApplicantDisplayFormPage,
     24    ApplicantEditFormPage)
    2425
    2526from kofacustom.lpng.interfaces import MessageFactory as _
     
    4041
    4142class SelectPunitActionButton(ManageActionButton):
    42     grok.order(1)
     43    grok.order(2)
    4344    grok.context(ICustomApplicant)
    4445    grok.require('waeup.handleApplication')
     
    4748    text = _('Locate Polling Unit')
    4849    target ='punitformpage'
     50
     51class MakeUSSDDonationActionButton(ManageActionButton):
     52    grok.order(1)
     53    grok.context(ICustomApplicant)
     54    grok.require('waeup.handleApplication')
     55    grok.view(ApplicantDisplayFormPage)
     56    icon = 'actionicon_donate.png'
     57    text = _('Make Donation via USSD')
     58    target ='ussdinfo'
     59
     60class MakeUSSDDonationActionButton2(MakeUSSDDonationActionButton):
     61    grok.view(ApplicantEditFormPage)
Note: See TracChangeset for help on using the changeset viewer.