Changeset 7868


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

Apply PhoneWidget? all over Kofa.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

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

    r7847 r7868  
    360360        'firstname', 'middlename', 'lastname',
    361361        'email', 'phone')
     362    form_fields['phone'].custom_widget = PhoneWidget
    362363    label = _('Add applicant')
    363364    pnav = 3
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r7834 r7868  
    5858from waeup.kofa.authentication import LocalRoleSetEvent
    5959from waeup.kofa.widgets.restwidget import ReSTDisplayWidget
     60from waeup.kofa.widgets.phonewidget import PhoneWidget
    6061from waeup.kofa.authentication import get_principal_role_manager
    6162from waeup.kofa.utils.helpers import get_user_account
     
    424425    grok.template('usereditformpage')
    425426    form_fields = grok.AutoFields(IUserAccount)
     427    form_fields['phone'].custom_widget = PhoneWidget
    426428    label = _('Add user')
    427429
     
    463465    grok.template('usereditformpage')
    464466    grok.require('waeup.manageUsers')
    465 
    466467    form_fields = grok.AutoFields(IUserAccount).omit('name')
     468    form_fields['phone'].custom_widget = PhoneWidget
    467469
    468470    def label(self):
  • 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.