Changeset 10533


Ignore:
Timestamp:
25 Aug 2013, 06:11:19 (11 years ago)
Author:
Henrik Bettermann
Message:

UG applicants: make jamb_subjects' and jamb_score editable.

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

Legend:

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

    r10529 r10533  
    4545    )
    4646
     47UG_OMIT_EDIT_FIELDS = [
     48    value for value in UG_OMIT_EDIT_FIELDS
     49        if not value in ('jamb_subjects', 'jamb_score')]
     50
    4751class CustomApplicantDisplayFormPage(NigeriaApplicantDisplayFormPage):
    4852    """A display view for applicant data.
     
    6165                form_fields = form_fields.omit(field)
    6266        form_fields['notice'].custom_widget = BytesDisplayWidget
     67        form_fields['jamb_subjects'].custom_widget = BytesDisplayWidget
    6368        if not getattr(self.context, 'student_id'):
    6469            form_fields = form_fields.omit('student_id')
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r10500 r10533  
    177177    jamb_subjects = schema.Text(
    178178        title = _(u'Subjects and Scores'),
     179        description = _(u'(one subject with score per line)'),
    179180        required = False,
    180181        )
Note: See TracChangeset for help on using the changeset viewer.