Changeset 17863 for main/waeup.kofa


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

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

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

Legend:

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

    r17850 r17863  
    441.8.2.dev0 (unreleased)
    55=======================
     6
     7* Add student's current session to base data block on slips (requested by Uniben)
    68
    79* Add `ExportApplication` permission which allows bursary officers
  • 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.