Ignore:
Timestamp:
29 Aug 2011, 10:08:05 (13 years ago)
Author:
Henrik Bettermann
Message:

Use friendly date widgets.

File:
1 edited

Legend:

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

    r6649 r6650  
    316316    grok.require('waeup.viewStudents')
    317317    form_fields = grok.AutoFields(IStudentClearance)
     318    form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le')
    318319    title = 'Clearance Data'
    319320    pnav = 4
     
    341342    title = 'Clearance Data'
    342343    pnav = 4
     344
     345    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
     346
     347    def update(self):
     348        datepicker.need() # Enable jQuery datepicker in date fields.
     349        return super(StudentClearanceManageFormPage, self).update()
    343350
    344351class StudentPersonalDisplayFormPage(WAeUPDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.