Changeset 8160 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 15 Apr 2012, 06:40:01 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8150 r8160 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 ( 55 FriendlyDateWidget, FriendlyDateDisplayWidget, 56 FriendlyDatetimeDisplayWidget) 54 from waeup.kofa.widgets.datewidget import FriendlyDateDisplayWidget 57 55 from waeup.kofa.widgets.phonewidget import PhoneWidget 58 56 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget … … 153 151 form_fields = grok.AutoFields( 154 152 IApplicantsContainerAdd).omit('code').omit('title') 155 form_fields['startdate'].custom_widget = FriendlyDateWidget('le')156 form_fields['enddate'].custom_widget = FriendlyDateWidget('le')157 153 158 154 def update(self): … … 226 222 227 223 form_fields = grok.AutoFields(IApplicantsContainer).omit('title') 228 form_fields['startdate'].custom_widget = FriendlyDateDisplayWidget('le')229 form_fields['enddate'].custom_widget = FriendlyDateDisplayWidget('le')230 224 form_fields['description'].custom_widget = ReSTDisplayWidget 231 225 … … 257 251 tabthreeactions2 = [_('Add local role')] 258 252 # Use friendlier date widget... 259 form_fields['startdate'].custom_widget = FriendlyDateWidget('le')260 form_fields['enddate'].custom_widget = FriendlyDateWidget('le')261 253 grok.require('waeup.manageApplication') 262 254 … … 497 489 grok.require('waeup.viewApplication') 498 490 form_fields = grok.AutoFields(IApplicantOnlinePayment) 499 form_fields[500 'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')501 form_fields[502 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')503 491 pnav = 3 504 492 … … 546 534 grok.require('waeup.viewApplication') 547 535 form_fields = grok.AutoFields(IApplicantOnlinePayment) 548 form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le')549 form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le')536 #form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le') 537 #form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le') 550 538 prefix = 'form' 551 539 … … 754 742 'screening_score', 755 743 ) 756 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')757 744 form_fields['phone'].custom_widget = PhoneWidget 758 745 form_fields['applicant_id'].for_display = True -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r8154 r8160 221 221 """Content as language dictionary with values in HTML format.""") 222 222 223 startdate = schema.Date(223 startdate = FormattedDate( 224 224 title = _(u'Application Start Date'), 225 225 required = False, 226 ) 227 228 enddate = schema.Date( 226 show_year = False, 227 ) 228 229 enddate = FormattedDate( 229 230 title = _(u'Application Closing Date'), 230 231 required = False, 232 show_year = False, 231 233 ) 232 234
Note: See TracChangeset for help on using the changeset viewer.