Changeset 9729 for main


Ignore:
Timestamp:
27 Nov 2012, 13:08:32 (12 years ago)
Author:
Henrik Bettermann
Message:

We need to reduce selectable payment categories. Instead of defining another interface we render the select box manually.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 added
1 edited

Legend:

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

    r9723 r9729  
    13891389    grok.context(IStudentPaymentsContainer)
    13901390    grok.name('addop')
     1391    grok.template('onlinepaymentaddform')
    13911392    grok.require('waeup.payStudent')
    13921393    form_fields = grok.AutoFields(IStudentOnlinePayment).select(
     
    13941395    label = _('Add online payment')
    13951396    pnav = 4
     1397
     1398    @property
     1399    def selectable_categories(self):
     1400        categories = getUtility(IKofaUtils).SELECTABLE_PAYMENT_CATEGORIES
     1401        return sorted(categories.items())
    13961402
    13971403    @action(_('Create ticket'), style='primary')
     
    14331439    grok.context(IStudentPaymentsContainer)
    14341440    grok.name('addpp')
     1441    grok.template('previouspaymentaddform')
    14351442    grok.require('waeup.payStudent')
    14361443    form_fields = grok.AutoFields(IStudentPreviousPayment).select(
Note: See TracChangeset for help on using the changeset viewer.