Changeset 7378 for main/waeup.sirp


Ignore:
Timestamp:
18 Dec 2011, 11:45:08 (13 years ago)
Author:
Henrik Bettermann
Message:

Display applicant_is on manage and edit form page in readonly mode. This can be achieved with the for_display attribute of form fields.

File:
1 edited

Legend:

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

    r7373 r7378  
    852852    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
    853853    form_fields['student_id'].for_display = True
     854    form_fields['applicant_id'].for_display = True
    854855    grok.template('applicanteditpage')
    855856    manage_applications = True
     
    981982    form_fields = grok.AutoFields(IApplicantEdit).omit(
    982983        'locked', 'course_admitted', 'student_id',
    983         'screening_score', 'applicant_id', 'reg_number'
     984        'screening_score', 'reg_number'
    984985        )
    985986    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
Note: See TracChangeset for help on using the changeset viewer.