Changeset 8170 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 16 Apr 2012, 07:39:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8160 r8170 52 52 from waeup.kofa.students.interfaces import IStudentsUtils 53 53 from waeup.kofa.utils.helpers import string_from_bytes, file_size 54 from waeup.kofa.widgets.datewidget import FriendlyDateDisplayWidget 54 from waeup.kofa.widgets.datewidget import ( 55 FriendlyDateDisplayWidget, FriendlyDateDisplayWidget, 56 FriendlyDatetimeDisplayWidget) 55 57 from waeup.kofa.widgets.phonewidget import PhoneWidget 56 58 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget … … 489 491 grok.require('waeup.viewApplication') 490 492 form_fields = grok.AutoFields(IApplicantOnlinePayment) 493 form_fields[ 494 'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 495 form_fields[ 496 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 491 497 pnav = 3 492 498 … … 494 500 def label(self): 495 501 return _('${a}: Online Payment Ticket ${b}', mapping = { 496 'a':self.context.__parent__.display_fullname, 'b':self.context.p_id}) 502 'a':self.context.__parent__.display_fullname, 503 'b':self.context.p_id}) 497 504 498 505 class OnlinePaymentCallbackPage(UtilityView, grok.View): … … 534 541 grok.require('waeup.viewApplication') 535 542 form_fields = grok.AutoFields(IApplicantOnlinePayment) 536 #form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le')537 #form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le')543 form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le') 544 form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le') 538 545 prefix = 'form' 539 546
Note: See TracChangeset for help on using the changeset viewer.