Ignore:
Timestamp:
8 Jan 2010, 02:36:33 (15 years ago)
Author:
uli
Message:

Add 'edit settings' and 'add course' buttons for certificate index
pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/browser/viewlets.py

    r4723 r4730  
    88from waeup.browser.pages import (UniversityPage, FacultyContainerPage,
    99                                 DatacenterPage, FacultyPage, DepartmentPage,
    10                                  CoursePage)
     10                                 CoursePage, CertificatePage)
    1111from waeup.browser.interfaces import IBreadcrumbContainer
    1212from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter,
     
    152152    grok.require('waeup.manageUniversity')
    153153
     154class ManageCertificateAction(ManageUniversityAction):
     155    """ 'Edit settings' button for certificates.
     156    """
     157    grok.context(ICertificate)
     158    grok.view(CertificatePage)
     159    grok.template('manageaction')
     160    grok.require('waeup.manageUniversity')
     161
    154162#
    155163# Add actions...
     
    253261    grok.context(IDepartment)
    254262    grok.view(DepartmentPage)
     263    grok.order(4)
     264    grok.template('addaction')
     265    grok.require('waeup.manageUniversity')
     266
     267    addview_name = 'addcourse'
     268    addlink_text = 'Add course'
     269
     270class AddCertificateCourseAction(AddAction):
     271    """Add-course button for certificate index page.
     272    """
     273    grok.context(ICertificate)
     274    grok.view(CertificatePage)
    255275    grok.order(4)
    256276    grok.template('addaction')
Note: See TracChangeset for help on using the changeset viewer.