Changeset 16383
- Timestamp:
- 22 Jan 2021, 23:06:28 (4 years ago)
- 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 781 781 782 782 class StudentMedicalHistoryEditFormPage(KofaEditFormPage): 783 """ Page to edit medic cal data783 """ Page to edit medical data 784 784 """ 785 785 grok.context(ICustomStudent) … … 803 803 return 804 804 805 class 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 805 812 class ExportPDFMedicalHistorySlip(grok.View): 806 813 """Deliver a PDF slip of the context. -
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r16382 r16383 180 180 return False 181 181 182 class MedicalHistory ActionButton(ManageActionButton):182 class MedicalHistoryEditActionButton(ManageActionButton): 183 183 grok.order(12) 184 184 grok.context(ICustomStudent) … … 188 188 target = 'edit_medical' 189 189 icon = 'actionicon_medical.png' 190 191 class MedicalHistoryManageActionButton(MedicalHistoryEditActionButton): 192 grok.require('waeup.manageStudent') 193 text = _('Manage medical history') 194 target = 'manage_medical' 190 195 191 196 class MedicalHistorySlipActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.