Changeset 18359 for main


Ignore:
Timestamp:
5 Nov 2026, 12:09:23 (2 weeks ago)
Author:
Henrik Bettermann
Message:

Change PG Application forms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/applicants/interfaces.py

    r18352 r18359  
    199199        )
    200200    hq_session = schema.TextLine(
    201         title = _(u'Years Attended'),
     201        title = _(u'Year Attended'),
    202202        required = False,
    203203        readonly = False,
    … …  
    276276        )
    277277
    278 class ICustomPGApplicant(INigeriaPGApplicant):
     278class ICustomPGApplicant(IApplicantBaseData):
    279279    """A postgraduate applicant.
    280280    """
     281
     282    nationality = schema.Choice(
     283        source = nats_vocab,
     284        title = _(u'Nationality'),
     285        required = True,
     286        )
     287    lga = schema.Choice(
     288        source = LGASource(),
     289        title = _(u'State/LGA (Nigerians only)'),
     290        required = False,
     291        )
     292    #perm_address = schema.Text(
     293    #    title = _(u'Permanent Address'),
     294    #    required = False,
     295    #    )
     296    course1 = schema.Choice(
     297        title = _(u'1st Choice Course of Study'),
     298        source = AppCatCertificateSource(),
     299        required = True,
     300        )
     301    course2 = schema.Choice(
     302        title = _(u'2nd Choice Course of Study'),
     303        source = AppCatCertificateSource(),
     304        required = False,
     305        )
     306    hq_type = schema.Choice(
     307        title = _(u'Qualification Obtained'),
     308        required = False,
     309        readonly = False,
     310        vocabulary = high_qual,
     311        )
     312    hq_fname = schema.TextLine(
     313        title = _(u'Full Name'),
     314        required = False,
     315        readonly = False,
     316        )
     317    hq_matric_no = schema.TextLine(
     318        title = _(u'Former Matric Number'),
     319        required = False,
     320        readonly = False,
     321        )
     322    hq_degree = schema.Choice(
     323        title = _(u'Class of Degree'),
     324        required = False,
     325        readonly = False,
     326        vocabulary = high_grade,
     327        )
     328    hq_school = schema.TextLine(
     329        title = _(u'Institution Attended'),
     330        required = False,
     331        readonly = False,
     332        )
     333    hq_session = schema.TextLine(
     334        title = _(u'Year Attended'),
     335        required = False,
     336        readonly = False,
     337        )
     338    hq_disc = schema.TextLine(
     339        title = _(u'Discipline'),
     340        required = False,
     341        readonly = False,
     342        )
     343
     344    presently_inst = schema.TextLine(
     345        title = _(u'If yes, name of institution'),
     346        required = False,
     347        readonly = False,
     348        )
     349    nysc_year = schema.Int(
     350        title = _(u'Nysc Year'),
     351        required = False,
     352        readonly = False,
     353        )
     354    nysc_lga = schema.Choice(
     355        source = LGASource(),
     356        title = _(u'Nysc Location'),
     357        description = _(u'Leave blank for exception letters.'),
     358        required = False,
     359        )
     360    notice = schema.Text(
     361        title = _(u'Notice'),
     362        required = False,
     363        readonly = False,
     364        )
     365    screening_venue = schema.TextLine(
     366        title = _(u'Screening Venue'),
     367        required = False,
     368        )
     369    screening_date = schema.TextLine(
     370        title = _(u'Screening Date'),
     371        required = False,
     372        )
     373    screening_score = schema.Float(
     374        title = _(u'Screening Score (%)'),
     375        required = False,
     376        )
     377    student_id = schema.TextLine(
     378        title = _(u'Student Id'),
     379        required = False,
     380        readonly = False,
     381        )
     382    course_admitted = schema.Choice(
     383        title = _(u'Admitted Course of Study'),
     384        source = CertificateSource(),
     385        required = False,
     386        readonly = False,
     387        )
     388    locked = schema.Bool(
     389        title = _(u'Form locked'),
     390        default = False,
     391        required = False,
     392        )
    281393
    282394    referees = schema.List(
    … …  
    319431    """
    320432
    321 class ICustomPGApplicantEdit(INigeriaPGApplicantEdit):
     433class ICustomPGApplicantEdit(ICustomPGApplicant):
    322434    """A postgraduate applicant interface for editing.
    323435
    … …  
    331443    """
    332444
    333     referees = schema.List(
    334         title = _(u'Referees'),
    335         value_type = RefereeEntryField(),
    336         description = _(u'Maximum 3 referees'),
    337         required = True,
    338         defaultFactory=list,
    339         )
    340445
    341446class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment):
Note: See TracChangeset for help on using the changeset viewer.