Changeset 15791


Ignore:
Timestamp:
10 Nov 2019, 19:54:03 (5 years ago)
Author:
Henrik Bettermann
Message:

Add gender field.

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

    r15740 r15791  
    603603        )
    604604
     605    sex = schema.Choice(
     606        title = _(u'Gender'),
     607        source = GenderSource(),
     608        required = True,
     609        )
     610
    605611    place_of_birth = schema.TextLine(
    606612        title = _(u'Place of Birth'),
     
    754760        #date_format = u'%d/%m/%Y', # Use grok-instance-wide default
    755761        show_year = True,
     762        )
     763
     764    sex = schema.Choice(
     765        title = _(u'Gender'),
     766        source = GenderSource(),
     767        required = True,
    756768        )
    757769
     
    852864        )
    853865
     866    sex = schema.Choice(
     867        title = _(u'Gender'),
     868        source = GenderSource(),
     869        required = True,
     870        )
     871
    854872    email = schema.ASCIILine(
    855873        title = _(u'Email Address'),
     
    909927    lastname = schema.TextLine(
    910928        title = _(u'Last Name (Surname)'),
     929        required = True,
     930        )
     931
     932    sex = schema.Choice(
     933        title = _(u'Gender'),
     934        source = GenderSource(),
    911935        required = True,
    912936        )
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r15530 r15791  
    286286        self.browser.getControl(name="form.firstname").value = 'Angela'
    287287        self.browser.getControl(name="form.lastname").value = 'Merkel'
     288        self.browser.getControl(name="form.sex").value = ['f']
    288289        self.browser.getControl(name="form.no_copies").value = ['3']
    289290        self.browser.getControl(name="form.course_studied").value = ['CERT1']
Note: See TracChangeset for help on using the changeset viewer.