Changeset 15150 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/viewlets.py
- Timestamp:
- 19 Sep 2018, 11:11:38 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/viewlets.py
r15147 r15150 40 40 from waeup.kofa.students.workflow import ( 41 41 ADMITTED, PAID, REQUESTED, CLEARED, REGISTERED, VALIDATED, GRADUATED, 42 TRANSREQ, TRANSVAL )42 TRANSREQ, TRANSVAL, TRANSREL) 43 43 from waeup.kofa.university.interfaces import ICourse 44 44 … … 738 738 @property 739 739 def target_url(self): 740 if self.context.student.transcript_enabled: 740 final_slip = getUtility(IExtFileStore).getFileByContext( 741 self.context.student, attr='final_transcript') 742 if self.context.student.transcript_enabled and not final_slip: 741 743 return self.view.url(self.view.context, self.target) 742 744 return False … … 810 812 @property 811 813 def target_url(self): 812 if self.context.student.transcript_enabled: 814 final_slip = getUtility(IExtFileStore).getFileByContext( 815 self.context.student, attr='final_transcript') 816 if self.context.student.transcript_enabled \ 817 and not final_slip: 813 818 return self.view.url(self.view.context, self.target) 814 819 return False … … 820 825 grok.view(StudyCourseTranscriptPage) 821 826 grok.require('waeup.signTranscript') 822 text = _('Sign transcript ')827 text = _('Sign transcript electronically') 823 828 target = 'sign_transcript' 824 829 icon = 'actionicon_transcript.png' … … 833 838 def onclick(self): 834 839 return "return window.confirm(%s);" % _( 835 "'Signing a transcript cannot be revoked."836 " \\n\\n"840 "'Signing a transcript electronically cannot be revoked. " 841 "The electronic signature replaces your handwritten signature.\\n\\n" 837 842 "You really want to sign the transcript?'") 838 843
Note: See TracChangeset for help on using the changeset viewer.