Ignore:
Timestamp:
29 Jul 2024, 19:13:59 (5 months ago)
Author:
Henrik Bettermann
Message:

Add student's current session to base data block on slips (requested by Uniben)

File:
1 edited

Legend:

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

    r17842 r17863  
    216216        # Requested by Uniben, does not really make sense
    217217        if not 'current_level' in omit_fields:
     218            f_label = trans(_('Current Session:'), lang)
     219            f_label = Paragraph(f_label, ENTRY1_STYLE)
     220            current_session = studentview.context['studycourse'].current_session
     221            current_session = academic_sessions_vocab.getTerm(
     222                    current_session).title
     223            f_text = formatted_text(current_session)
     224            f_text = Paragraph(f_text, ENTRY1_STYLE)
     225            data_middle.append([f_label,f_text])
    218226            f_label = trans(_('Current Level:'), lang)
    219227            f_label = Paragraph(f_label, ENTRY1_STYLE)
Note: See TracChangeset for help on using the changeset viewer.