- Timestamp:
- 11 Jun 2016, 09:21:50 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/students/viewlets.py
r13610 r13913 36 36 AccommodationManageFormPage, BedTicketDisplayFormPage, 37 37 StudentClearanceEditFormPage, StudentPersonalEditFormPage, 38 PaymentsManageFormPage, StudyCourseTranscriptPage )38 PaymentsManageFormPage, StudyCourseTranscriptPage, EditScoresPage) 39 39 from waeup.kofa.students.interfaces import ( 40 40 IStudentsContainer, IStudent, IStudentStudyCourse, IStudentAccommodation, … … 42 42 IStudentPaymentsContainer, IStudentsUtils 43 43 ) 44 from waeup.kofa.university.interfaces import ICourse 44 45 45 46 grok.context(IKofaObject) # Make IKofaObject the default context … … 803 804 ] 804 805 return targets 806 807 class DownloadCSVFileActionButton(ManageActionButton): 808 """ 'Download csv file' button for courses. 809 """ 810 grok.context(ICourse) 811 grok.view(EditScoresPage) 812 grok.name('downloadcsv') 813 grok.require('waeup.editScores') 814 icon = 'actionicon_down.png' 815 text = _('Download editable tickets') 816 target = 'download_scores' 817 grok.order(1) 818 819 class DownloadTicketOverviewActionButton(ManageActionButton): 820 """ 'Download ticket overview' button for courses. 821 """ 822 grok.context(ICourse) 823 grok.view(EditScoresPage) 824 grok.name('coursetickets') 825 grok.require('waeup.editScores') 826 icon = 'actionicon_pdf.png' 827 text = _('Download pdf file') 828 target = 'coursetickets.pdf' 829 grok.order(2)
Note: See TracChangeset for help on using the changeset viewer.