Ignore:
Timestamp:
18 Sep 2018, 19:49:12 (6 years ago)
Author:
Henrik Bettermann
Message:

Change order.

File:
1 edited

Legend:

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

    r15146 r15147  
    391391
    392392
    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     @property
    404     def target_url(self):
    405         if self.context.student.transcript_enabled:
    406             return self.view.url(self.view.context, self.target)
    407         return False
    408 
    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     @property
    421     def target_url(self):
    422         if self.context.student.transcript_enabled:
    423             return self.view.url(self.view.context, self.target)
    424         return False
    425 
    426 
    427393class RevertTransferActionButton(ManageActionButton):
    428394    grok.order(1)
     
    760726
    761727
     728class 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
    762745class RequestTranscriptActionButton(ManageActionButton):
    763746    grok.order(8)
     
    777760
    778761class ValidateTranscriptActionButton(ManageActionButton):
    779     grok.order(9)
     762    grok.order(8)
    780763    grok.context(IStudentTranscript)
    781764    grok.view(StudentBaseDisplayFormPage)
     
    798781            "You really want to validate the transcript?'")
    799782
     783
     784class 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
     800class 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
    800817class SignTranscriptActionButton(ManageActionButton):
    801     grok.order(9)
     818    grok.order(2)
    802819    grok.context(IStudentStudyCourse)
    803820    grok.view(StudyCourseTranscriptPage)
     
    819836            "\\n\\n"
    820837            "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     @property
    833     def target_url(self):
    834         if self.context.state != TRANSVAL:
    835             return ''
    836         return self.view.url(self.view.context, self.target)
    837838
    838839
Note: See TracChangeset for help on using the changeset viewer.