Ignore:
Timestamp:
19 Sep 2012, 10:16:38 (12 years ago)
Author:
Henrik Bettermann
Message:

Change label of ExportPDFBedTicketSlipPage. Fix datetime format.

File:
1 edited

Legend:

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

    r9199 r9201  
    15471547    grok.require('waeup.handleAccommodation')
    15481548    form_fields = grok.AutoFields(IBedTicket)
     1549    form_fields['booking_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    15491550    pnav = 4
    15501551
     
    15731574    def label(self):
    15741575        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    1575         return translate(_('Bed Allocation: '),
     1576        #return translate(_('Bed Allocation: '),
     1577        #    'waeup.kofa', target_language=portal_language) \
     1578        #    + ' %s' % self.context.bed_coordinates
     1579        return translate(_('Bed Allocation Slip'),
    15761580            'waeup.kofa', target_language=portal_language) \
    1577             + ' %s' % self.context.bed_coordinates
     1581            + ' %s' % self.context.getSessionString()
    15781582
    15791583    def render(self):
Note: See TracChangeset for help on using the changeset viewer.