Ignore:
Timestamp:
19 Sep 2018, 11:11:38 (6 years ago)
Author:
Henrik Bettermann
Message:

Print electronic signatures on pdf files.

Remove final transcript file when resetting the transcript process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/viewlets.py

    r15147 r15150  
    4040from waeup.kofa.students.workflow import (
    4141    ADMITTED, PAID, REQUESTED, CLEARED, REGISTERED, VALIDATED, GRADUATED,
    42     TRANSREQ, TRANSVAL)
     42    TRANSREQ, TRANSVAL, TRANSREL)
    4343from waeup.kofa.university.interfaces import ICourse
    4444
     
    738738    @property
    739739    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:
    741743            return self.view.url(self.view.context, self.target)
    742744        return False
     
    810812    @property
    811813    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:
    813818            return self.view.url(self.view.context, self.target)
    814819        return False
     
    820825    grok.view(StudyCourseTranscriptPage)
    821826    grok.require('waeup.signTranscript')
    822     text = _('Sign transcript')
     827    text = _('Sign transcript electronically')
    823828    target = 'sign_transcript'
    824829    icon = 'actionicon_transcript.png'
     
    833838    def onclick(self):
    834839        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"
    837842            "You really want to sign the transcript?'")
    838843
Note: See TracChangeset for help on using the changeset viewer.