Changeset 10080 for main/waeup.kofa/trunk/src
- Timestamp:
- 14 Apr 2013, 15:33:09 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/static/waeup-base.css
r10015 r10080 43 43 44 44 .container { 45 width: 700px;45 width: 800px; 46 46 } 47 47 … … 191 191 padding-left: 20px; 192 192 padding-right: 20px; 193 width: 700px;193 width: 800px; 194 194 background-color: #FFFFFF; 195 195 background-image: None; -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r10060 r10080 28 28 from zope.schema.interfaces import ConstraintNotSatisfied, RequiredMissing 29 29 from zope.formlib.textwidgets import BytesDisplayWidget 30 from zope.security import checkPermission 30 31 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 31 32 from waeup.kofa.accesscodes import ( … … 1442 1443 grok.context(IStudentPaymentsContainer) 1443 1444 grok.name('index') 1444 grok.require('waeup. payStudent')1445 grok.require('waeup.viewStudent') 1445 1446 form_fields = grok.AutoFields(IStudentPaymentsContainer) 1446 1447 grok.template('paymentsmanagepage') 1447 1448 pnav = 4 1449 1450 @property 1451 def manage_payments_allowed(self): 1452 return checkPermission('waeup.payStudent', self.context) 1448 1453 1449 1454 def unremovable(self, ticket): … … 1451 1456 if not usertype: 1452 1457 return False 1458 if not self.manage_payments_allowed: 1459 return True 1453 1460 return (self.request.principal.user_type == 'student' and ticket.r_code) 1454 1461 -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/paymentsmanagepage.pt
r9984 r10080 37 37 </table> 38 38 39 <div tal:condition=" view/availableActions">39 <div tal:condition="python: view.availableActions and view.manage_payments_allowed"> 40 40 <span tal:repeat="action view/actions" 41 41 tal:omit-tag=""> -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r10060 r10080 121 121 class StudentManagePaymentsLink(StudentManageLink): 122 122 grok.order(6) 123 grok.require('waeup. payStudent')123 grok.require('waeup.viewStudent') 124 124 link = 'payments' 125 125 text = _(u'Payments')
Note: See TracChangeset for help on using the changeset viewer.