Ignore:
Timestamp:
18 Apr 2012, 05:31:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Insert description and use FriendlyDatetimeDisplayWidget? in display view.

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

    r8200 r8203  
    225225    form_fields = grok.AutoFields(IApplicantsContainer).omit('title')
    226226    form_fields['description'].custom_widget = ReSTDisplayWidget
     227    form_fields[
     228        'startdate'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     229    form_fields[
     230        'enddate'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    227231
    228232    @property
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r8200 r8203  
    224224        title = _(u'Application Start Date'),
    225225        required = False,
    226         #show_year = False,
     226        description = _('Example:') + u'2011-12-01 18:30:00+01:00',
    227227        )
    228228
     
    230230        title = _(u'Application Closing Date'),
    231231        required = False,
    232         #show_year = False,
     232        description = _('Example:') + u'2011-12-31 23:59:59+01:00',
    233233        )
    234234
Note: See TracChangeset for help on using the changeset viewer.