Changeset 14814


Ignore:
Timestamp:
23 Aug 2017, 09:28:36 (7 years ago)
Author:
Henrik Bettermann
Message:

Add tooltip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py

    r14093 r14814  
    2323from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
    2424from zope.formlib.textwidgets import BytesDisplayWidget
     25from waeup.kofa.browser.layout import action, NullValidator
    2526from waeup.kofa.students.interfaces import IStudentsUtils
    2627from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage,
     
    2930    OnlinePaymentDisplayFormPage,
    3031    OnlinePaymentBreadcrumb, ExportPDFPaymentSlipPage,
     32    ApplicantsRootManageFormPage
    3133    )
    3234from waeup.kofa.applicants.viewlets import (
     
    6163        return _('Download application slip')
    6264
     65class NigeriaApplicantsRootManageFormPage(ApplicantsRootManageFormPage):
     66
     67    @action(_('Add applicants container'),
     68            tooltip=_(
     69                'Please read chapter '
     70                '\'Preparation and Maintenance of Applicants Containers\' '
     71                '(Kofa Docs) before activating the application.'),
     72            validator=NullValidator)
     73    def addApplicantsContainer(self, **data):
     74        self.redirect(self.url(self.context, '@@add'))
     75        return
     76
    6377class NigeriaApplicantDisplayFormPage(ApplicantDisplayFormPage):
    6478    """A display view for applicant data.
Note: See TracChangeset for help on using the changeset viewer.