Ignore:
Timestamp:
6 Aug 2013, 20:32:53 (11 years ago)
Author:
Henrik Bettermann
Message:

Add pages and buttons for transcript request processing. Work in progress, tests will follow!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r10278 r10458  
    3333from waeup.kofa.students.workflow import (
    3434    ADMITTED, PAID, REQUESTED, RETURNING, CLEARED, REGISTERED,
    35     VALIDATED)
     35    VALIDATED, GRADUATED, TRANSCRIPT)
    3636from waeup.kofa.students.browser import (
    3737    clearance_disabled_message,
     
    675675    @property
    676676    def target_url(self):
     677        return self.view.url(self.view.context, self.target)
     678
     679class RequestTranscriptActionButton(ManageActionButton):
     680    grok.order(8)
     681    grok.context(IStudent)
     682    grok.view(StudentBaseDisplayFormPage)
     683    grok.require('waeup.handleStudent')
     684    text = _('Request transcript')
     685    target = 'request_transcript'
     686    icon = 'actionicon_transcript.png'
     687
     688    @property
     689    def target_url(self):
     690        if self.context.state != GRADUATED:
     691            return ''
     692        return self.view.url(self.view.context, self.target)
     693
     694class ManageTranscriptRequestActionButton(ManageActionButton):
     695    grok.order(9)
     696    grok.context(IStudent)
     697    grok.view(StudentBaseDisplayFormPage)
     698    grok.require('waeup.manageStudent')
     699    text = _('Manage transcript request')
     700    target = 'manage_transcript_request'
     701    icon = 'actionicon_transcript.png'
     702
     703    @property
     704    def target_url(self):
     705        if self.context.state != TRANSCRIPT:
     706            return ''
    677707        return self.view.url(self.view.context, self.target)
    678708
Note: See TracChangeset for help on using the changeset viewer.