Changeset 5844 for main/waeup.sirp/trunk
- Timestamp:
- 11 Mar 2011, 23:48:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r5843 r5844 28 28 from hurry.jqueryui import jqueryui 29 29 from zope.component import getUtility, getAllUtilitiesRegisteredFor 30 from zope.formlib.widgets import FileWidget 30 from zope.formlib.widgets import FileWidget, DateWidget 31 31 from waeup.sirp.browser import ( 32 32 WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, … … 72 72 MultiListDisplayWidget, subwidget=results_display_widget) 73 73 74 #: A date widget that renders with CSS class `datepicker` thus 75 # enabling : the jQuery datepicker for this field if the form loaded 76 # the jQuery code. 77 FriendlyDateWidget = CustomWidgetFactory( 78 DateWidget, cssClass='datepicker') 79 74 80 class ApplicationsPage(WAeUPPage): 75 81 grok.context(IApplicantsRoot) … … 287 293 grok.name('edit') 288 294 form_fields = grok.AutoFields(IApplicantsContainer) 295 # Use friendlier date widget... 296 form_fields['startdate'].custom_widget = FriendlyDateWidget 297 form_fields['enddate'].custom_widget = FriendlyDateWidget 289 298 label = 'Edit container' 290 299 title = label
Note: See TracChangeset for help on using the changeset viewer.