Ignore:
Timestamp:
11 Dec 2013, 15:56:06 (11 years ago)
Author:
Henrik Bettermann
Message:

Implement special application for supplementary payments.

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

Legend:

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

    r10643 r10844  
    2323from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
    2424from zope.formlib.textwidgets import BytesDisplayWidget
     25from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit
    2526from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage,
    2627    ApplicantManageFormPage, ApplicantEditFormPage,
     
    7273    @property
    7374    def form_fields(self):
     75        if self.context.special:
     76            form_fields = grok.AutoFields(IApplicant).select(
     77                'applicant_id', 'firstname', 'middlename', 'lastname',
     78                'reg_number', 'date_of_birth', 'email', 'special_application')
     79            return form_fields
    7480        form_fields = grok.AutoFields(ICustomUGApplicant)
    7581        if self.context.is_nd:
     
    123129    @property
    124130    def form_fields(self):
     131        if self.context.special:
     132            form_fields = grok.AutoFields(IApplicant).select(
     133                'applicant_id', 'firstname', 'middlename', 'lastname',
     134                'reg_number', 'date_of_birth', 'email', 'special_application',
     135                'locked')
     136            return form_fields
    125137        form_fields = grok.AutoFields(ICustomUGApplicant)
    126138        if self.context.is_nd:
     
    140152    @property
    141153    def form_fields(self):
     154
     155        if self.context.special:
     156            form_fields = grok.AutoFields(IApplicantEdit).select(
     157                'applicant_id', 'firstname', 'middlename', 'lastname',
     158                'reg_number', 'date_of_birth', 'email', 'special_application')
     159            return form_fields
    142160        form_fields = grok.AutoFields(ICustomUGApplicantEdit)
    143161        if self.context.is_nd:
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/interfaces.py

    r10640 r10844  
    5050    'hq_type')
    5151ND_OMIT_PDF_FIELDS = ND_OMIT_DISPLAY_FIELDS + ('phone',)
    52 ND_OMIT_MANAGE_FIELDS = ()
     52ND_OMIT_MANAGE_FIELDS = ('special_application',)
    5353ND_OMIT_EDIT_FIELDS = ND_OMIT_MANAGE_FIELDS + ND_OMIT_DISPLAY_FIELDS + (
    5454    'student_id', 'notice',
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/utils.py

    r10623 r10844  
    4949        'prendpt': ['Pre-Admission Screening: ND Part-Time Forms', 'NDPT'],
    5050        'prejambites': ['Pre-Admission Screening: JAMBITES', 'JMB'],
     51        'special': ['Supplementary Payment', 'SP'],
    5152        }
    5253
Note: See TracChangeset for help on using the changeset viewer.