Ignore:
Timestamp:
5 Feb 2020, 22:29:40 (5 years ago)
Author:
Henrik Bettermann
Message:

Don't show 'Base Data' header on slips if no form fields do follow.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r15986 r15988  
    441.6.1.dev0 (unreleased)
    55=======================
     6
     7* Don't show 'Base Data' header on slips if no form fields do
     8  follow.
    69
    710* When adding course tickets, check if course has already been
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r15986 r15988  
    798798        # Insert student data table
    799799        if student is not None:
    800             bd_translation = trans(_('Base Data'), portal_language)
    801             data.append(Paragraph(bd_translation, HEADING_STYLE))
     800            if view.form_fields:
     801                bd_translation = trans(_('Base Data'), portal_language)
     802                data.append(Paragraph(bd_translation, HEADING_STYLE))
    802803            data.append(render_student_data(
    803804                studentview, view.context, omit_fields, lang=portal_language,
Note: See TracChangeset for help on using the changeset viewer.