Changeset 15863


Ignore:
Timestamp:
2 Dec 2019, 18:20:57 (5 years ago)
Author:
Henrik Bettermann
Message:

Change application form.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants
Files:
2 edited

Legend:

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

    r15858 r15863  
    2626from waeup.kofa.interfaces import (
    2727    SimpleKofaVocabulary, academic_sessions_vocab, validate_email)
    28 from waeup.kofa.schema import FormattedDate, TextLineChoice
     28from waeup.kofa.schema import FormattedDate, TextLineChoice, PhoneNumber
    2929from waeup.kofa.students.vocabularies import nats_vocab, GenderSource
    3030from waeup.kofa.applicants.interfaces import (
     
    4545    (_('Bauchi Government'), 'bauchi'),
    4646    (_('Company'), 'company'),
    47     (_('Federal Government (Amnesty)'), 'federalgov'),
    48     (_('Dangote Group'), 'dangote'),
     47    (_('Federal Government of Nigeria'), 'federalgov'),
     48    #(_('Dangote Group'), 'dangote'),
    4949    (_('Kano Government'), 'kano'),
    5050    (_('Parent/Guardian'), 'parent'),
    5151    (_('Rosula Organization'), 'rosula'),
    5252    (_('Self'), 'self'),
    53     (_('Social Impact Project'), 'social'),
     53    #(_('Social Impact Project'), 'social'),
    5454    )
    5555
     
    6060    (_('Radio Advertisement'), 'radio'),
    6161    (_('Television Advertisement'), 'television'),
     62    (_('SMS'), 'sms'),
    6263    )
    6364
     
    9697        required = False,
    9798        )
     99    sponsor = schema.Choice(
     100        title = _(u'Sponsor'),
     101        vocabulary = sponsors_vocab,
     102        required = False,
     103        )
     104    heard_about = schema.Choice(
     105        title = _(u'How did you hear about IUO?'),
     106        vocabulary = heard_about_types_vocab,
     107        required = False,
     108        )
    98109    #perm_address = schema.Text(
    99110    #    title = _(u'Permanent Address'),
    100111    #    required = False,
    101112    #    )
     113    parents_name = schema.TextLine(
     114        title = _(u'Full Name'),
     115        required = False,
     116        readonly = False,
     117        )
     118    parents_email = schema.ASCIILine(
     119        title = _(u'Email Address'),
     120        required = False,
     121        constraint=validate_email,
     122        )
     123    parents_phone = PhoneNumber(
     124        title = _(u'Phone'),
     125        required = False,
     126        )
    102127    course1 = schema.Choice(
    103128        title = _(u'1st Choice Course of Study'),
     
    113138        title = _(u'Programme Type'),
    114139        vocabulary = programme_types_vocab,
    115         required = False,
    116         )
    117     sponsor = schema.Choice(
    118         title = _(u'Sponsor'),
    119         vocabulary = sponsors_vocab,
    120         required = False,
    121         )
    122     heard_about = schema.Choice(
    123         title = _(u'How did you hear about IU?'),
    124         vocabulary = heard_about_types_vocab,
    125140        required = False,
    126141        )
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/utils.py

    r15860 r15863  
    6262        'form.scd_sit_fname': _(u'Second Sitting Record'),
    6363        'form.referees': _(u'Referees'),
     64        'form.parents_name': _(u'Parents / Guardian'),
    6465        }
    6566
Note: See TracChangeset for help on using the changeset viewer.