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 | """ |
---|
3 | import grok |
---|
4 | from waeup.sirp.browser import WAeUPPage |
---|
5 | from waeup.sirp.browser.breadcrumbs import Breadcrumb |
---|
6 | from waeup.sirp.browser.viewlets import AdminTask |
---|
7 | from waeup.sirp.interfaces import IWAeUPObject |
---|
8 | |
---|
9 | from waeup.sirp.accesscodes.interfaces import IAccessCodeBatchContainer |
---|
10 | |
---|
11 | grok.context(IWAeUPObject) |
---|
12 | |
---|
13 | class BatchContainerPage(WAeUPPage): |
---|
14 | grok.name('index') |
---|
15 | grok.context(IAccessCodeBatchContainer) |
---|
16 | grok.template('batchcontainer') |
---|
17 | |
---|
18 | title = 'Access Code Batches' |
---|
19 | pnav = 0 |
---|
20 | |
---|
21 | class 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 | |
---|
28 | class 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.