Ignore:
Timestamp:
12 Dec 2019, 06:17:45 (5 years ago)
Author:
Henrik Bettermann
Message:

Make JAMB fileds editable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/browser.py

    r15883 r15884  
    3838    FriendlyDatetimeDisplayWidget)
    3939from kofacustom.nigeria.applicants.interfaces import (
    40     UG_OMIT_DISPLAY_FIELDS,
    41     UG_OMIT_PDF_FIELDS,
    42     UG_OMIT_MANAGE_FIELDS,
    43     UG_OMIT_EDIT_FIELDS,
     40    OMIT_DISPLAY_FIELDS,
     41    #UG_OMIT_DISPLAY_FIELDS,
     42    #UG_OMIT_PDF_FIELDS,
     43    #UG_OMIT_MANAGE_FIELDS,
     44    #UG_OMIT_EDIT_FIELDS,
    4445    PG_OMIT_DISPLAY_FIELDS,
    4546    PG_OMIT_PDF_FIELDS,
     
    5556
    5657MAX_FILE_UPLOAD_SIZE = 1024 * 500
     58
     59# UG students are all undergraduate students.
     60UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + (
     61    #'jamb_subjects_list',
     62    'programme_type',)
     63UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('phone',)
     64UG_OMIT_MANAGE_FIELDS = (
     65    'special_application',
     66    #'jamb_subjects_list',
     67    'programme_type')
     68UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + (
     69    'student_id',
     70    'notice',
     71    'screening_score',
     72    'screening_venue',
     73    'screening_date',
     74    #'jamb_age',
     75    #'jamb_subjects',
     76    #'jamb_score',
     77    #'jamb_reg_number',
     78    'aggregate')
    5779
    5880def handle_file_upload(upload, context, view, attr=None):
Note: See TracChangeset for help on using the changeset viewer.