Ignore:
Timestamp:
13 Mar 2012, 08:08:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Apply PhoneWidget? all over Kofa.

File:
1 edited

Legend:

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

    r7841 r7868  
    4646    FriendlyDateWidget, FriendlyDateDisplayWidget,
    4747    FriendlyDatetimeDisplayWidget)
     48from waeup.kofa.widgets.restwidget import ReSTDisplayWidget
     49from waeup.kofa.widgets.phonewidget import PhoneWidget
    4850from waeup.kofa.students.interfaces import (
    4951    IStudentsContainer, IStudent, IStudentClearance,
     
    326328    grok.require('waeup.manageStudent')
    327329    form_fields = grok.AutoFields(IStudentBase).omit('student_id')
     330    form_fields['phone'].custom_widget = PhoneWidget
    328331    grok.template('basemanagepage')
    329332    label = _('Manage base data')
     
    14351438    form_fields = grok.AutoFields(IStudentBase).select(
    14361439        'email', 'phone')
     1440    form_fields['phone'].custom_widget = PhoneWidget
    14371441    label = _('Edit base data')
    14381442    pnav = 4
Note: See TracChangeset for help on using the changeset viewer.