Ignore:
Timestamp:
22 Jan 2021, 23:06:28 (4 years ago)
Author:
Henrik Bettermann
Message:

Add manage page.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

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

    r16382 r16383  
    781781
    782782class StudentMedicalHistoryEditFormPage(KofaEditFormPage):
    783     """ Page to edit mediccal data
     783    """ Page to edit medical data
    784784    """
    785785    grok.context(ICustomStudent)
     
    803803        return
    804804
     805class StudentMedicalHistoryManageFormPage(StudentMedicalHistoryEditFormPage):
     806    """ Page to manage medical data
     807    """
     808    grok.name('manage_medical')
     809    grok.require('waeup.manageStudent')
     810    label = _('Manage medical history data')
     811
    805812class ExportPDFMedicalHistorySlip(grok.View):
    806813    """Deliver a PDF slip of the context.
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r16382 r16383  
    180180        return False
    181181
    182 class MedicalHistoryActionButton(ManageActionButton):
     182class MedicalHistoryEditActionButton(ManageActionButton):
    183183    grok.order(12)
    184184    grok.context(ICustomStudent)
     
    188188    target = 'edit_medical'
    189189    icon = 'actionicon_medical.png'
     190
     191class MedicalHistoryManageActionButton(MedicalHistoryEditActionButton):
     192    grok.require('waeup.manageStudent')
     193    text = _('Manage medical history')
     194    target = 'manage_medical'
    190195
    191196class MedicalHistorySlipActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.