Ignore:
Timestamp:
22 Jan 2021, 22:49:43 (4 years ago)
Author:
Henrik Bettermann
Message:

Implement medical history questionnaire.

File:
1 edited

Legend:

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

    r16364 r16382  
    3535    ICustomStudent,)
    3636
     37from waeup.uniben.students.browser import StudentMedicalHistoryEditFormPage
     38
    3739from kofacustom.nigeria.interfaces import MessageFactory as _
    3840
     
    178180        return False
    179181
     182class MedicalHistoryActionButton(ManageActionButton):
     183    grok.order(12)
     184    grok.context(ICustomStudent)
     185    grok.view(StudentBaseDisplayFormPage)
     186    grok.require('waeup.handleStudent')
     187    text = _('Edit medical history')
     188    target = 'edit_medical'
     189    icon = 'actionicon_medical.png'
     190
     191class MedicalHistorySlipActionButton(ManageActionButton):
     192    grok.order(1)
     193    grok.context(ICustomStudent)
     194    grok.view(StudentMedicalHistoryEditFormPage)
     195    grok.require('waeup.viewStudent')
     196    icon = 'actionicon_pdf.png'
     197    text = _('Download medical history slip')
     198    target = 'medical_history_slip.pdf'
     199
    180200# JAMB Letter
    181201
Note: See TracChangeset for help on using the changeset viewer.