Changeset 10590


Ignore:
Timestamp:
5 Sep 2013, 21:23:45 (11 years ago)
Author:
Henrik Bettermann
Message:

UG applicants: make jamb_subjects' and jamb_score editable.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants
Files:
2 edited

Legend:

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

    r10134 r10590  
    4343    )
    4444
     45UG_OMIT_EDIT_FIELDS = [
     46    value for value in UG_OMIT_EDIT_FIELDS
     47        if not value in ('jamb_subjects', 'jamb_score')]
     48
    4549class CustomApplicantsContainerPage(ApplicantsContainerPage):
    4650    """The standard view for regular applicant containers.
     
    6973                form_fields = form_fields.omit(field)
    7074        form_fields['notice'].custom_widget = BytesDisplayWidget
     75        form_fields['jamb_subjects'].custom_widget = BytesDisplayWidget
    7176        if not getattr(self.context, 'student_id'):
    7277            form_fields = form_fields.omit('student_id')
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/interfaces.py

    r10167 r10590  
    163163    jamb_subjects = schema.Text(
    164164        title = _(u'Subjects and Scores'),
     165        description = _(u'(one subject with score per line)'),
    165166        required = False,
    166167        )
Note: See TracChangeset for help on using the changeset viewer.