Ignore:
Timestamp:
19 Sep 2018, 05:01:03 (6 years ago)
Author:
Henrik Bettermann
Message:

Fill transcript_signee attribute after signing.

Location:
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students
Files:
3 edited

Legend:

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

    r15148 r15149  
    11831183            % (ob_class, self.context.student.student_id))
    11841184        self.context.student.history.addMessage('Transcript signed')
    1185         self.redirect(self.url(self.context))
     1185        tz = getattr(queryUtility(IKofaUtils), 'tzinfo', pytz.utc)
     1186        today = now(tz).strftime('%d/%m/%Y %H:%M:%S %Z')
     1187        prev_transcript_signees = self.context.student.transcript_signees
     1188        if prev_transcript_signees == None:
     1189            prev_transcript_signees = ''
     1190        self.context.student.transcript_signees = '''Signed by %s (%s) on %s
     1191
     1192%s''' % (self.request.principal.title, self.request.principal.id, today,
     1193            prev_transcript_signees)
    11861194        return
    11871195
     
    12121220        else:
    12131221            self.correspondence = ''
     1222        if self.context.transcript_signees is not None:
     1223            self.signees = self.context.transcript_signees.replace('\n', '<br>')
     1224        else:
     1225            self.signees = ''
    12141226        if SUBMIT is None:
    12151227            return
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser_templates/transcriptrelease.pt

    r15143 r15149  
    4444
    4545    <div id="tab2" class="tab-pane">
    46       <p tal:content="structure view/correspondence"></p>
     46      <br /><p tal:content="structure view/correspondence"></p>
    4747    </div>
    4848
    4949    <div id="tab3" class="tab-pane">
    50       <p tal:content="structure context/transcript_signees"></p>
     50      <br /><p tal:content="structure view/signees"></p>
    5151    </div>
    5252  </div>
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser_templates/transcriptrequest.pt

    r11551 r15149  
    7373
    7474    <div id="tab2" class="tab-pane">
    75       <p tal:content="structure view/correspondence"></p>
     75      <br /><p tal:content="structure view/correspondence"></p>
    7676    </div>
    7777  </div>
Note: See TracChangeset for help on using the changeset viewer.