Ignore:
Timestamp:
19 Jan 2015, 08:02:59 (10 years ago)
Author:
Henrik Bettermann
Message:

Use proper data headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r12490 r12491  
    370370        # Insert customer data table
    371371        if customer is not None:
    372             #bd_translation = trans(_('Customer'), portal_language)
    373             #data.append(Paragraph(bd_translation, HEADING_STYLE))
     372            if view.__name__ == 'contract_slip.pdf':
     373                bd_translation = trans(_('Contractor'), portal_language)
     374                data.append(Paragraph(bd_translation, HEADING_STYLE))
     375            if view.__name__ == 'document_slip.pdf':
     376                bd_translation = trans(_('Document Owner'), portal_language)
     377                data.append(Paragraph(bd_translation, HEADING_STYLE))
    374378            data.append(render_customer_data(
    375379                customerview, view.context, omit_fields, lang=portal_language,
     
    378382        # Insert widgets
    379383        if view.form_fields:
    380             data_header = trans(_('${a} Data',
    381                 mapping = {'a':view.context.translated_class_name}),
    382                 portal_language)
    383             data.append(Paragraph(data_header, HEADING_STYLE))
     384            if view.__name__ == 'contract_slip.pdf':
     385                data_header = trans(_('Contract Data'), portal_language)
     386                data.append(Paragraph(data_header, HEADING_STYLE))
    384387            separators = getattr(self, 'SEPARATORS_DICT', {})
    385388            table = creator.getWidgetsTable(
Note: See TracChangeset for help on using the changeset viewer.