Changeset 13240 for main/kofacustom.wdu/trunk/src/kofacustom
- Timestamp:
- 4 Sep 2015, 08:04:03 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.wdu/trunk/src/kofacustom/wdu/applicants/interfaces.py
r12888 r13240 26 26 from waeup.kofa.interfaces import ( 27 27 SimpleKofaVocabulary, academic_sessions_vocab, validate_email) 28 from waeup.kofa.schema import FormattedDate, TextLineChoice 28 from waeup.kofa.schema import FormattedDate, TextLineChoice, PhoneNumber 29 29 from waeup.kofa.students.vocabularies import nats_vocab, GenderSource 30 30 from waeup.kofa.applicants.interfaces import contextual_reg_num_source … … 50 50 title = _(u'Sex'), 51 51 source = GenderSource(), 52 required = False,52 required = True, 53 53 ) 54 54 marit_stat = schema.Choice( 55 55 title = u'Maritual Status', 56 required = False,56 required = True, 57 57 vocabulary = SimpleKofaVocabulary( 58 58 (_('Single'), 'single'), … … 69 69 lga = schema.Choice( 70 70 source = LGASource(), 71 title = _(u'State/LGA (Nigerians only)'), 72 required = False, 71 title = _(u'State/LGA'), 72 description = _("Select 'Foreigner' if not a Nigerian."), 73 required = True, 73 74 ) 74 75 religion = schema.Choice( … … 247 248 jamb_subjects = schema.Text( 248 249 title = _(u'Subjects and Scores'), 249 description = _(u' (one subject with score per line)'),250 description = _(u'One subject with score per line.'), 250 251 required = False, 251 252 ) … … 343 344 """ 344 345 346 email = schema.ASCIILine( 347 title = _(u'Email Address'), 348 required = True, 349 constraint=validate_email, 350 ) 351 date_of_birth = FormattedDate( 352 title = _(u'Date of Birth'), 353 required = True, 354 show_year = True, 355 ) 356 phone = PhoneNumber( 357 title = _(u'Phone'), 358 description = u'', 359 required = True, 360 ) 361 362 ICustomUGApplicantEdit['email'].order = ICustomUGApplicant['email'].order 363 ICustomUGApplicantEdit['date_of_birth'].order = ICustomUGApplicant['date_of_birth'].order 364 ICustomUGApplicantEdit['phone'].order = ICustomUGApplicant['phone'].order 365 345 366 class ICustomPGApplicantEdit(INigeriaPGApplicantEdit): 346 367 """A postgraduate applicant interface for editing. … … 372 393 """ 373 394 395 email = schema.ASCIILine( 396 title = _(u'Email Address'), 397 required = True, 398 constraint=validate_email, 399 ) 400 date_of_birth = FormattedDate( 401 title = _(u'Date of Birth'), 402 required = True, 403 show_year = True, 404 ) 405 phone = PhoneNumber( 406 title = _(u'Phone'), 407 description = u'', 408 required = True, 409 ) 410 411 ICustomPUTMEApplicantEdit['email'].order = ICustomUGApplicant['email'].order 412 ICustomPUTMEApplicantEdit['date_of_birth'].order = ICustomUGApplicant['date_of_birth'].order 413 ICustomPUTMEApplicantEdit['phone'].order = ICustomUGApplicant['phone'].order 414 374 415 class ICustomApplicantUpdateByRegNo(INigeriaApplicantUpdateByRegNo): 375 416 """Representation of an applicant.
Note: See TracChangeset for help on using the changeset viewer.