Ignore:
Timestamp:
1 Sep 2012, 07:15:42 (12 years ago)
Author:
Henrik Bettermann
Message:

Adjust student base data section on slips. Display certificate code and full name.

File:
1 edited

Legend:

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

    r9069 r9141  
    117117    #data.append([Spacer(1, 12)])
    118118    portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
     119
     120    f_label = formatted_label(size=12) % _('Name')
     121    f_label = Paragraph(f_label, style["Normal"])
     122    f_text = formatted_text(studentview.context.display_fullname, size=12)
     123    f_text = Paragraph(f_text, style["Normal"])
     124    data_right.append([f_label,f_text])
     125
    119126    for widget in studentview.widgets:
    120         if widget.name == 'form.adm_code':
     127        if 'name' in widget.name:
    121128            continue
    122129        f_label = formatted_label(size=12) % translate(
     
    127134        f_text = Paragraph(f_text, style["Normal"])
    128135        data_right.append([f_label,f_text])
     136
     137    if hasattr(studentview.context, 'certcode'):
     138        f_label = formatted_label(size=12) % _('Study Course')
     139        f_label = Paragraph(f_label, style["Normal"])
     140        f_text = formatted_text(studentview.context.certcode, size=12)
     141        f_text = Paragraph(f_text, style["Normal"])
     142        data_right.append([f_label,f_text])
     143
    129144    table_left = Table(data_left,style=SLIP_STYLE)
    130145    table_right = Table(data_right,style=SLIP_STYLE, colWidths=[5*cm, 6*cm])
Note: See TracChangeset for help on using the changeset viewer.