source: main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser.py @ 5082

Last change on this file since 5082 was 5082, checked in by uli, 15 years ago

Add first UI related components for access-codes.

File size: 1.0 KB
Line 
1"""UI components for accesscodes.
2"""
3import grok
4from waeup.sirp.browser import WAeUPPage
5from waeup.sirp.browser.breadcrumbs import Breadcrumb
6from waeup.sirp.browser.viewlets import AdminTask
7from waeup.sirp.interfaces import IWAeUPObject
8
9from waeup.sirp.accesscodes.interfaces import IAccessCodeBatchContainer
10
11grok.context(IWAeUPObject)
12
13class BatchContainerPage(WAeUPPage):
14    grok.name('index')
15    grok.context(IAccessCodeBatchContainer)
16    grok.template('batchcontainer')
17
18    title = 'Access Code Batches'
19    pnav = 0
20
21class BatchContainerBreadcrumb(Breadcrumb):
22    """A breadcrumb for ac batch containers.
23    """
24    grok.context(IAccessCodeBatchContainer)
25    title = u'Access Code Batches'
26    parent_viewname = 'administration'
27
28class AdminTaskManageACBatches(AdminTask):
29    """Entry on administration page that links to batch container.
30    """
31    grok.order(5)
32    grok.require('waeup.manageUniversity')
33    grok.template('admintaskacbatches')
34
35    link_title = 'Manage access-code batches'
36    target_viewname = 'accesscodes'
Note: See TracBrowser for help on using the repository browser.