Ignore:
Timestamp:
21 Nov 2012, 15:18:31 (12 years ago)
Author:
Henrik Bettermann
Message:

Add field 'suspended_comment'. This attribute will be used to render flash messages for deactivated students. The field is only displayed on the student manage page.

File:
1 edited

Legend:

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

    r9701 r9702  
    356356    grok.require('waeup.viewStudent')
    357357    grok.template('basepage')
    358     form_fields = grok.AutoFields(IStudentBase).omit('password', 'suspended')
     358    form_fields = grok.AutoFields(IStudentBase).omit(
     359        'password', 'suspended', 'suspended_comment')
    359360    pnav = 4
    360361
     
    610611    grok.require('waeup.viewStudent')
    611612    prefix = 'form'
    612     omit_fields = ('password', 'suspended', 'phone', 'adm_code')
     613    omit_fields = (
     614        'password', 'suspended', 'phone',
     615        'adm_code', 'suspended_comment')
    613616
    614617    @property
     
    10471050        'validation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    10481051    prefix = 'form'
    1049     omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex')
     1052    omit_fields = (
     1053        'password', 'suspended', 'phone',
     1054        'adm_code', 'sex', 'suspended_comment')
    10501055
    10511056    @property
     
    15011506    prefix = 'form'
    15021507    note = None
    1503     omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex')
     1508    omit_fields = (
     1509        'password', 'suspended', 'phone',
     1510        'adm_code', 'sex', 'suspended_comment')
    15041511
    15051512    @property
     
    17441751    form_fields['booking_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    17451752    prefix = 'form'
    1746     omit_fields = ('password', 'suspended', 'phone', 'adm_code')
     1753    omit_fields = (
     1754        'password', 'suspended', 'phone', 'adm_code', 'suspended_comment')
    17471755
    17481756    @property
Note: See TracChangeset for help on using the changeset viewer.