Changeset 10380 for main/waeup.imostate


Ignore:
Timestamp:
25 Jun 2013, 05:54:25 (12 years ago)
Author:
Henrik Bettermann
Message:

Customize form.

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

Legend:

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

    r10367 r10380  
    4343    )
    4444
     45UG_OMIT_DISPLAY_FIELDS += ('course2',)
     46UG_OMIT_PDF_FIELDS += ('course2',)
     47UG_OMIT_MANAGE_FIELDS += ('course2',)
     48UG_OMIT_EDIT_FIELDS += ('course2',)
     49
    4550from waeup.imostate.applicants.workflow import STARTED
    4651
  • main/waeup.imostate/trunk/src/waeup/imostate/applicants/interfaces.py

    r10350 r10380  
    2121from zope import schema
    2222from zope.interface import Attribute, invariant, Invalid
     23from waeup.kofa.schema import FormattedDate, TextLineChoice
     24from waeup.kofa.schoolgrades import ResultEntryField
    2325from waeup.kofa.applicants.interfaces import (
    2426    IApplicantBaseData,
     
    3638from waeup.imostate.interfaces import MessageFactory as _
    3739
    38 class ICustomUGApplicant(INigeriaUGApplicant):
     40class ICustomUGApplicant(IApplicantBaseData):
    3941    """An undergraduate applicant.
    4042
     
    4345    adding them to the UG_OMIT* tuples.
    4446    """
     47
     48    nationality = schema.Choice(
     49        source = nats_vocab,
     50        title = _(u'Nationality'),
     51        required = True,
     52        )
     53    lga = schema.Choice(
     54        source = LGASource(),
     55        title = _(u'State/LGA (Nigerians only)'),
     56        required = False,
     57        )
     58    #perm_address = schema.Text(
     59    #    title = _(u'Permanent Address'),
     60    #    required = False,
     61    #    )
     62    course1 = schema.Choice(
     63        title = _(u'Programme Desired'),
     64        source = AppCatCertificateSource(),
     65        required = True,
     66        )
     67
     68    olevel_type = schema.Choice(
     69        title = _(u'Qualification Obtained'),
     70        required = False,
     71        readonly = False,
     72        vocabulary = exam_types,
     73        )
     74    olevel_school = schema.TextLine(
     75        title = _(u'Institution Attended'),
     76        required = False,
     77        readonly = False,
     78        )
     79    olevel_exam_number = schema.TextLine(
     80        title = _(u'Exam Number'),
     81        required = False,
     82        readonly = False,
     83        )
     84    olevel_exam_date = FormattedDate(
     85        title = _(u'Exam Date'),
     86        required = False,
     87        readonly = False,
     88        show_year = True,
     89        )
     90    olevel_results = schema.List(
     91        title = _(u'Exam Results'),
     92        value_type = ResultEntryField(),
     93        required = False,
     94        readonly = False,
     95        default = [],
     96        )
     97
     98    notice = schema.Text(
     99        title = _(u'Notice'),
     100        required = False,
     101        )
     102    screening_venue = schema.TextLine(
     103        title = _(u'Screening Venue'),
     104        required = False,
     105        )
     106    screening_date = schema.TextLine(
     107        title = _(u'Screening Date'),
     108        required = False,
     109        )
     110    screening_score = schema.Int(
     111        title = _(u'Screening Score (%)'),
     112        required = False,
     113        )
     114    result_uploaded = schema.Bool(
     115        title = _(u'Result uploaded'),
     116        default = False,
     117        )
     118    student_id = schema.TextLine(
     119        title = _(u'Student Id'),
     120        required = False,
     121        readonly = False,
     122        )
     123    course_admitted = schema.Choice(
     124        title = _(u'Programme Admitted'),
     125        source = CertificateSource(),
     126        required = False,
     127        )
     128    locked = schema.Bool(
     129        title = _(u'Form locked'),
     130        default = False,
     131        )
    45132
    46133class ICustomApplicant(ICustomUGApplicant):
  • main/waeup.imostate/trunk/src/waeup/imostate/applicants/utils.py

    r10366 r10380  
    3232    SEPARATORS_DICT = {
    3333        'form.applicant_id': _(u'Base Data'),
    34         'form.course1': _(u'Programmes/Courses Desired'),
     34        #'form.course1': _(u'Programmes/Courses Desired'),
     35        'form.olevel_type': _(u"'O' Level Records"),
     36        'form.notice': _(u'Application Process Information'),
    3537      }
    3638
Note: See TracChangeset for help on using the changeset viewer.