- Timestamp:
- 18 Sep 2018, 19:49:12 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/viewlets.py
r15146 r15147 391 391 392 392 393 class StudyCourseTranscriptActionButton(ManageActionButton):394 grok.order(2)395 grok.name('transcript')396 grok.context(IStudentStudyCourse)397 grok.view(StudyCourseDisplayFormPage)398 grok.require('waeup.viewTranscript')399 text = _('Transcript')400 target = 'transcript'401 icon = 'actionicon_transcript.png'402 403 @property404 def target_url(self):405 if self.context.student.transcript_enabled:406 return self.view.url(self.view.context, self.target)407 return False408 409 410 class TranscriptSlipActionButton(ManageActionButton):411 grok.order(1)412 grok.name('transcript_slip')413 grok.context(IStudentStudyCourse)414 grok.view(StudyCourseTranscriptPage)415 grok.require('waeup.viewTranscript')416 text = _('Academic Transcript')417 target = 'transcript.pdf'418 icon = 'actionicon_pdf.png'419 420 @property421 def target_url(self):422 if self.context.student.transcript_enabled:423 return self.view.url(self.view.context, self.target)424 return False425 426 427 393 class RevertTransferActionButton(ManageActionButton): 428 394 grok.order(1) … … 760 726 761 727 728 class StudyCourseTranscriptActionButton(ManageActionButton): 729 grok.order(2) 730 grok.name('transcript') 731 grok.context(IStudentStudyCourse) 732 grok.view(StudyCourseDisplayFormPage) 733 grok.require('waeup.viewTranscript') 734 text = _('Transcript') 735 target = 'transcript' 736 icon = 'actionicon_transcript.png' 737 738 @property 739 def target_url(self): 740 if self.context.student.transcript_enabled: 741 return self.view.url(self.view.context, self.target) 742 return False 743 744 762 745 class RequestTranscriptActionButton(ManageActionButton): 763 746 grok.order(8) … … 777 760 778 761 class ValidateTranscriptActionButton(ManageActionButton): 779 grok.order( 9)762 grok.order(8) 780 763 grok.context(IStudentTranscript) 781 764 grok.view(StudentBaseDisplayFormPage) … … 798 781 "You really want to validate the transcript?'") 799 782 783 784 class ReleaseTranscriptActionButton(ManageActionButton): 785 grok.order(8) 786 grok.context(IStudentTranscript) 787 grok.view(StudentBaseDisplayFormPage) 788 grok.require('waeup.processTranscript') 789 text = _('Release transcript') 790 target = 'release_transcript' 791 icon = 'actionicon_transcript.png' 792 793 @property 794 def target_url(self): 795 if self.context.state != TRANSVAL: 796 return '' 797 return self.view.url(self.view.context, self.target) 798 799 800 class TranscriptSlipActionButton(ManageActionButton): 801 grok.order(1) 802 grok.name('transcript_slip') 803 grok.context(IStudentStudyCourse) 804 grok.view(StudyCourseTranscriptPage) 805 grok.require('waeup.viewTranscript') 806 text = _('Academic Transcript') 807 target = 'transcript.pdf' 808 icon = 'actionicon_pdf.png' 809 810 @property 811 def target_url(self): 812 if self.context.student.transcript_enabled: 813 return self.view.url(self.view.context, self.target) 814 return False 815 816 800 817 class SignTranscriptActionButton(ManageActionButton): 801 grok.order( 9)818 grok.order(2) 802 819 grok.context(IStudentStudyCourse) 803 820 grok.view(StudyCourseTranscriptPage) … … 819 836 "\\n\\n" 820 837 "You really want to sign the transcript?'") 821 822 823 class ReleaseTranscriptActionButton(ManageActionButton):824 grok.order(9)825 grok.context(IStudentTranscript)826 grok.view(StudentBaseDisplayFormPage)827 grok.require('waeup.processTranscript')828 text = _('Release transcript')829 target = 'release_transcript'830 icon = 'actionicon_transcript.png'831 832 @property833 def target_url(self):834 if self.context.state != TRANSVAL:835 return ''836 return self.view.url(self.view.context, self.target)837 838 838 839
Note: See TracChangeset for help on using the changeset viewer.