Ignore:
Timestamp:
2 Apr 2012, 09:18:53 (13 years ago)
Author:
Henrik Bettermann
Message:

Use FriendlyDateDisplayWidget? for date of birth.

File:
1 edited

Legend:

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

    r7835 r8013  
    3232from zope.formlib.form import setUpEditWidgets
    3333from zope.publisher.browser import TestRequest
     34from waeup.kofa.widgets.datewidget import FriendlyDateDisplayWidget
    3435from waeup.kofa.applicants.interfaces import IApplicant
    3536from waeup.kofa.browser import DEFAULT_PASSPORT_IMAGE_PATH
     
    5051    form_fields =  grok.AutoFields(IApplicant).omit(
    5152        'locked', 'course_admitted')
     53    form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le')
    5254
    5355    @property
Note: See TracChangeset for help on using the changeset viewer.