Changeset 15982


Ignore:
Timestamp:
4 Feb 2020, 13:52:28 (5 years ago)
Author:
Henrik Bettermann
Message:

Change fields on slip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/browser.py

    r15981 r15982  
    212212    grok.name('examination_clearance_slip.pdf')
    213213
    214     form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit(
    215         'gpa', 'transcript_remark', 'total_credits', 'level_verdict')
     214    form_fields = None
     215
     216    omit_fields = (
     217        'password', 'suspended', 'phone', 'date_of_birth',
     218        'parents_email', 'current_mode', 'entry_session',
     219        'adm_code', 'sex', 'suspended_comment',
     220        'flash_notice')
    216221
    217222    @property
    218223    def label(self):
    219224        return '%s Examination Clearance' % self.context.level_session
     225
     226    @property
     227    def title(self):
     228        return ''
    220229
    221230    def update(self):
     
    228237        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    229238        Code = translate('Code', 'waeup.kofa', target_language=portal_language)
    230         Title = translate('Title', 'waeup.kofa', target_language=portal_language)
    231         Dept = translate('Dept.', 'waeup.kofa', target_language=portal_language)
    232         Faculty = translate('Faculty', 'waeup.kofa', target_language=portal_language)
    233         Cred = translate(_('Credits'), 'waeup.uniben', target_language=portal_language)
    234         Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)
     239        #Title = translate('Title', 'waeup.kofa', target_language=portal_language)
     240        #Dept = translate('Dept.', 'waeup.kofa', target_language=portal_language)
     241        #Faculty = translate('Faculty', 'waeup.kofa', target_language=portal_language)
     242        #Cred = translate(_('Credits'), 'waeup.uniben', target_language=portal_language)
     243        #Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)
    235244        studentview = StudentBasePDFFormPage(self.context.student,
    236245            self.request, self.omit_fields)
     
    244253                key=lambda value: str(value.semester) + value.code))
    245254            tableheader.append([(Code,'code', 2.5),
    246                              (Title,'title', 5),
    247                              (Dept,'dcode', 1.5), (Faculty,'fcode', 1.5),
    248                              (Cred, 'credits', 1.5),
     255                             #(Title,'title', 5),
     256                             #(Dept,'dcode', 1.5), (Faculty,'fcode', 1.5),
     257                             #(Cred, 'credits', 1.5),
     258                             ('Signature','sig', 10),
    249259                             ])
    250260        return students_utils.renderPDF(
Note: See TracChangeset for help on using the changeset viewer.