Ignore:
Timestamp:
19 Jun 2019, 07:24:30 (5 years ago)
Author:
Henrik Bettermann
Message:

Make course2 and course3 selection compulsory.

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

    r15459 r15462  
    837837        )
    838838
     839    course1 = schema.Choice(
     840        title = _(u'1st Choice Course of Study'),
     841        source = AppCatCertificateSource(),
     842        required = True,
     843        )
     844
     845    course2 = schema.Choice(
     846        title = _(u'2nd Choice Course of Study'),
     847        source = AppCatCertificateSource(),
     848        required = True,
     849        )
     850
     851    course3 = schema.Choice(
     852        title = _(u'3rd Choice Course of Study'),
     853        source = AppCatCertificateSource(),
     854        required = True,
     855        )
     856
    839857    fst_sit_fname = schema.TextLine(
    840858        title = _(u'Full Name'),
     
    888906ICustomUGApplicantEdit['date_of_birth'].order = ICustomUGApplicant[
    889907    'date_of_birth'].order
     908ICustomUGApplicantEdit['course1'].order = ICustomUGApplicant[
     909    'course1'].order
     910ICustomUGApplicantEdit['course2'].order = ICustomUGApplicant[
     911    'course2'].order
     912ICustomUGApplicantEdit['course3'].order = ICustomUGApplicant[
     913    'course3'].order
    890914ICustomUGApplicantEdit['fst_sit_fname'].order = ICustomUGApplicant[
    891915    'fst_sit_fname'].order
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r15455 r15462  
    6262        self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
    6363            certificate)
     64        certificate = createObject('waeup.Certificate')
     65        certificate.code = 'CERT3'
     66        certificate.title = 'New Certificate 2'
     67        certificate.application_category = 'basic'
     68        self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
     69            certificate)
    6470        configuration = SessionConfiguration()
    6571        configuration.academic_session = session_1
     
    6975        self.browser.open(self.edit_path)
    7076        self.browser.getControl(name="form.course2").value = ['CERT2']
     77        self.browser.getControl(name="form.course3").value = ['CERT3']
    7178        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
    7279        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
Note: See TracChangeset for help on using the changeset viewer.