Ignore:
Timestamp:
8 Jan 2013, 07:52:55 (12 years ago)
Author:
Henrik Bettermann
Message:

Implement local student data exports in certificates.

File:
1 edited

Legend:

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

    r9819 r9842  
    472472    text = _('Edit course')
    473473   
    474 class ManageCertificateActionButton(ManageActionButton):
    475     """ 'Manage settings' button for certificates.
    476     """
    477     grok.context(ICertificate)
    478     grok.view(CertificatePage)
    479     text = _('Manage certificate')
    480 
    481474class ShowCourseStudentsActionButton(ManageActionButton):
    482475    """ 'Show students' button in course.
     
    489482    target = 'students'
    490483
     484class ManageCertificateActionButton(ManageActionButton):
     485    """ 'Manage settings' button for certificates.
     486    """
     487    grok.context(ICertificate)
     488    grok.view(CertificatePage)
     489    text = _('Manage certificate')
     490    grok.order(1)
     491
    491492class ShowCertificateStudentsActionButton(ManageActionButton):
    492493    """ 'Show students' button for certificates.
     
    498499    text = _('Show students')
    499500    target = 'students'
     501    grok.order(2)
     502
     503class ExportCertificateStudentsActionButton(ManageActionButton):
     504    """ 'Export student data' button for certificates.
     505    """
     506    grok.context(ICertificate)
     507    grok.view(CertificatePage)
     508    grok.require('waeup.showStudents')
     509    icon = 'actionicon_down.png'
     510    text = _('Export student data')
     511    target = 'exports'
     512    grok.order(3)
    500513
    501514class ManageCertificateCourseActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.