Changeset 15276 for main/waeup.aaue


Ignore:
Timestamp:
19 Dec 2018, 16:15:51 (6 years ago)
Author:
Henrik Bettermann
Message:

Find another way to set the required attribute of some fields on CustomApplicantEditFormPage?.

File:
1 edited

Legend:

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

    r15265 r15276  
    488488            form_fields['applicant_id'].for_display = True
    489489            form_fields['reg_number'].for_display = True
     490            form_fields['place_of_birth'].field.required = True
     491            form_fields['date_of_birth'].field.required = True
     492            form_fields['nationality'].field.required = True
     493            form_fields['email'].field.required = True
     494            form_fields['phone'].field.required = True
     495            form_fields['perm_address'].field.required = True
     496            form_fields['dispatch_address'].field.required = True
     497            form_fields['entry_mode'].field.required = True
     498            form_fields['entry_session'].field.required = True
     499            form_fields['end_session'].field.required = True
     500            form_fields['course_studied'].field.required = True
    490501            return form_fields
    491502        if self.target is not None and self.target == 'cert':
     
    494505            form_fields['applicant_id'].for_display = True
    495506            form_fields['reg_number'].for_display = True
     507            form_fields['place_of_birth'].field.required = True
     508            form_fields['date_of_birth'].field.required = True
     509            form_fields['nationality'].field.required = True
     510            form_fields['email'].field.required = True
     511            form_fields['phone'].field.required = True
     512            form_fields['entry_session'].field.required = True
     513            form_fields['end_session'].field.required = True
     514            form_fields['course_studied'].field.required = True
     515            form_fields['certificate_type'].field.required = True
    496516            # Additional omissions
    497517            if self.context.__parent__.code == 'cert5':
Note: See TracChangeset for help on using the changeset viewer.