Ignore:
Timestamp:
12 Dec 2018, 09:17:35 (6 years ago)
Author:
Henrik Bettermann
Message:

Make most transcript and certificate application fields required.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py

    r15119 r15266  
    573573    date_of_birth = FormattedDate(
    574574        title = _(u'Date of Birth'),
    575         required = False,
     575        required = True,
    576576        #date_format = u'%d/%m/%Y', # Use grok-instance-wide default
    577577        show_year = True,
     
    581581        title = _(u'Place of Birth'),
    582582        readonly = False,
    583         required = False,
     583        required = True,
    584584        )
    585585
     
    587587        vocabulary = nats_vocab,
    588588        title = _(u'Nationality'),
    589         required = False,
     589        required = True,
    590590        )
    591591
     
    599599        title = _(u'Phone'),
    600600        description = u'',
    601         required = False,
     601        required = True,
    602602        )
    603603
    604604    perm_address = schema.Text(
    605605        title = _(u'Current Local Address'),
    606         required = False,
     606        required = True,
    607607        readonly = False,
    608608        )
     
    611611        title = _(u'Dispatch Addresses'),
    612612        description = u'Addresses to which transcript should be posted.',
    613         required = False,
     613        required = True,
    614614        readonly = False,
    615615        )
     
    618618        title = _(u'Entry Mode'),
    619619        source = StudyModeSource(),
    620         required = False,
     620        required = True,
    621621        readonly = False,
    622622        )
     
    625625        title = _(u'Entry Session'),
    626626        source = academic_sessions_vocab,
    627         required = False,
     627        required = True,
    628628        readonly = False,
    629629        )
     
    632632        title = _(u'End Session'),
    633633        source = academic_sessions_vocab,
    634         required = False,
     634        required = True,
    635635        readonly = False,
    636636        )
     
    639639        title = _(u'Course of Study / Degree'),
    640640        source = CertificateSource(),
    641         required = False,
     641        required = True,
    642642        readonly = False,
    643643        )
     
    726726    date_of_birth = FormattedDate(
    727727        title = _(u'Date of Birth'),
    728         required = False,
     728        required = True,
    729729        #date_format = u'%d/%m/%Y', # Use grok-instance-wide default
    730730        show_year = True,
     
    734734        title = _(u'Place of Birth'),
    735735        readonly = False,
    736         required = False,
     736        required = True,
    737737        )
    738738
     
    740740        vocabulary = nats_vocab,
    741741        title = _(u'Nationality'),
    742         required = False,
     742        required = True,
    743743        )
    744744
     
    752752        title = _(u'Phone'),
    753753        description = u'',
    754         required = False,
     754        required = True,
    755755        )
    756756
     
    758758        title = _(u'Entry Session'),
    759759        source = academic_sessions_vocab,
    760         required = False,
     760        required = True,
    761761        readonly = False,
    762762        )
     
    765765        title = _(u'End Session'),
    766766        source = academic_sessions_vocab,
    767         required = False,
     767        required = True,
    768768        readonly = False,
    769769        )
     
    779779        title = _(u'Certificate Type'),
    780780        vocabulary = certificate_types_vocab,
    781         required = False,
     781        required = True,
    782782        )
    783783
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r15113 r15266  
    275275        self.browser.getControl(name="form.course_studied").value = ['CERT1']
    276276        self.browser.getControl(name="form.matric_number").value = '234'
     277        self.browser.getControl(name="form.place_of_birth").value = 'Bochum'
     278        self.browser.getControl(name="form.dispatch_address").value = 'Kuensche'
     279        self.browser.getControl(name="form.perm_address").value = 'Kuensche'
     280        self.browser.getControl(name="form.entry_mode").value = ['ug_ft']
     281        self.browser.getControl(name="form.entry_session").value = ['2014']
     282        self.browser.getControl(name="form.end_session").value = ['2015']
     283        self.browser.getControl(name="form.phone.country").value = ['+234']
     284        self.browser.getControl(name="form.phone.ext").value = '5678'
    277285        self.browser.getControl("Save").click()
    278286        self.browser.getControl("Add online payment ticket").click()
Note: See TracChangeset for help on using the changeset viewer.