Changeset 14840


Ignore:
Timestamp:
6 Sep 2017, 07:26:54 (7 years ago)
Author:
Henrik Bettermann
Message:

Show screening date and venue only if student has submitted the application.

File:
1 edited

Legend:

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

    r14824 r14840  
    258258        if not getattr(self.context, 'screening_score'):
    259259            form_fields = form_fields.omit('screening_score')
    260         if not getattr(self.context, 'screening_venue'):
     260        if not getattr(self.context, 'screening_venue') or \
     261            self.context.state not in ('submitted', 'admitted', 'created'):
    261262            form_fields = form_fields.omit('screening_venue')
    262         if not getattr(self.context, 'screening_date'):
     263        if not getattr(self.context, 'screening_date') or \
     264            self.context.state not in ('submitted', 'admitted', 'created'):
    263265            form_fields = form_fields.omit('screening_date')
    264266        return form_fields
Note: See TracChangeset for help on using the changeset viewer.