Ignore:
Timestamp:
13 Sep 2022, 07:06:32 (2 years ago)
Author:
Henrik Bettermann
Message:

Implement Polling Unit Locator.

File:
1 edited

Legend:

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

    r17010 r17091  
    1818import grok
    1919from waeup.kofa.interfaces import IKofaObject
     20from waeup.kofa.browser.viewlets import ManageActionButton
    2021from waeup.kofa.applicants.viewlets import ApplicantsAuthTab
     22from kofacustom.lpng.applicants.interfaces import ICustomApplicant
     23from kofacustom.lpng.applicants.browser import ApplicantDisplayFormPage
    2124
    2225from kofacustom.lpng.interfaces import MessageFactory as _
     
    3538    def link_target(self):
    3639        return
     40
     41class SelectPunitActionButton(ManageActionButton):
     42    grok.order(1)
     43    grok.context(ICustomApplicant)
     44    grok.require('waeup.handleApplication')
     45    grok.view(ApplicantDisplayFormPage)
     46    icon = 'actionicon_polling.png'
     47    text = _('Locate Polling Unit')
     48    target ='punitformpage'
Note: See TracChangeset for help on using the changeset viewer.