Changeset 15581 for main


Ignore:
Timestamp:
4 Sep 2019, 08:30:04 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust ApplicantBaseDisplayFormPage? if application is special.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r15578 r15581  
    668668    grok.context(IApplicant)
    669669    grok.name('base')
    670     form_fields = grok.AutoFields(IApplicant).select(
    671         'applicant_id', 'reg_number', 'email', 'course1')
     670    @property
     671    def form_fields(self):
     672        form_fields = grok.AutoFields(IApplicant).select(
     673            'applicant_id', 'reg_number', 'email', 'course1')
     674        if self.context.__parent__.prefix in ('special',):
     675            form_fields['reg_number'].field.title = u'Identification Number'
     676            return form_fields
     677        return form_fields
    672678
    673679class CreateStudentPage(UtilityView, grok.View):
Note: See TracChangeset for help on using the changeset viewer.