Ignore:
Timestamp:
3 Jan 2015, 21:57:10 (10 years ago)
Author:
Henrik Bettermann
Message:

Avoid editing physical_clearance_date by student when student has not yet requested clearance.

File:
1 edited

Legend:

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

    r12265 r12391  
    6969        if self.context.is_postgrad:
    7070            form_fields = grok.AutoFields(ICustomPGStudentClearance).omit(
    71             'clearance_locked', 'nysc_location', 'clr_code', 'officer_comment')
     71            'clearance_locked', 'nysc_location', 'clr_code', 'officer_comment',
     72            'physical_clearance_date')
    7273        else:
    7374            form_fields = grok.AutoFields(ICustomUGStudentClearance).omit(
    74             'clearance_locked', 'clr_code', 'officer_comment')
     75            'clearance_locked', 'clr_code', 'officer_comment',
     76            'physical_clearance_date')
    7577            form_fields['date_of_birth'].for_display = True
    7678            form_fields['nationality'].for_display = True
Note: See TracChangeset for help on using the changeset viewer.