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

Make JAMB fileds editable.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants
Files:
2 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):
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py

    r15863 r15884  
    230230        readonly = False,
    231231        )
    232     jamb_subjects = schema.Text(
    233         title = _(u'Subjects and Scores'),
    234         required = False,
    235         )
    236     jamb_subjects = schema.Text(
    237         title = _(u'Subjects and Scores'),
    238         required = False,
    239         )
     232    #jamb_subjects = schema.Text(
     233    #    title = _(u'Subjects and Scores'),
     234    #    required = False,
     235    #    )
    240236    jamb_subjects_list = schema.List(
    241237        title = _(u'JAMB Subjects'),
Note: See TracChangeset for help on using the changeset viewer.