Changeset 7868
- Timestamp:
- 13 Mar 2012, 08:08:56 (13 years ago)
- 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 360 360 'firstname', 'middlename', 'lastname', 361 361 'email', 'phone') 362 form_fields['phone'].custom_widget = PhoneWidget 362 363 label = _('Add applicant') 363 364 pnav = 3 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r7834 r7868 58 58 from waeup.kofa.authentication import LocalRoleSetEvent 59 59 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 60 from waeup.kofa.widgets.phonewidget import PhoneWidget 60 61 from waeup.kofa.authentication import get_principal_role_manager 61 62 from waeup.kofa.utils.helpers import get_user_account … … 424 425 grok.template('usereditformpage') 425 426 form_fields = grok.AutoFields(IUserAccount) 427 form_fields['phone'].custom_widget = PhoneWidget 426 428 label = _('Add user') 427 429 … … 463 465 grok.template('usereditformpage') 464 466 grok.require('waeup.manageUsers') 465 466 467 form_fields = grok.AutoFields(IUserAccount).omit('name') 468 form_fields['phone'].custom_widget = PhoneWidget 467 469 468 470 def label(self): -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r7841 r7868 46 46 FriendlyDateWidget, FriendlyDateDisplayWidget, 47 47 FriendlyDatetimeDisplayWidget) 48 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 49 from waeup.kofa.widgets.phonewidget import PhoneWidget 48 50 from waeup.kofa.students.interfaces import ( 49 51 IStudentsContainer, IStudent, IStudentClearance, … … 326 328 grok.require('waeup.manageStudent') 327 329 form_fields = grok.AutoFields(IStudentBase).omit('student_id') 330 form_fields['phone'].custom_widget = PhoneWidget 328 331 grok.template('basemanagepage') 329 332 label = _('Manage base data') … … 1435 1438 form_fields = grok.AutoFields(IStudentBase).select( 1436 1439 'email', 'phone') 1440 form_fields['phone'].custom_widget = PhoneWidget 1437 1441 label = _('Edit base data') 1438 1442 pnav = 4
Note: See TracChangeset for help on using the changeset viewer.