Ignore:
Timestamp:
9 Oct 2020, 07:02:56 (4 years ago)
Author:
Henrik Bettermann
Message:

Revert r16265.

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

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py

    r16265 r16272  
    8181    def form_fields(self):
    8282        form_fields = grok.AutoFields(ICustomStudentBase).select(
    83             'email', 'parents_email', 'phone',)
     83            'email', 'email2', 'parents_email', 'phone',)
    8484        if not self.context.state in (ADMITTED, CLEARANCE):
    8585            form_fields['parents_email'].for_display = True
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/interfaces.py

    r16265 r16272  
    3737    """
    3838
    39     #email2 = schema.ASCIILine(
    40     #    title = _(u'Second Email'),
    41     #    required = False,
    42     #    constraint=validate_email,
    43     #    )
     39    email2 = schema.ASCIILine(
     40        title = _(u'Second Email'),
     41        required = False,
     42        constraint=validate_email,
     43        )
    4444
    4545    library = schema.Bool(
     
    4949        )
    5050
    51 #ICustomStudentBase['email2'].order = ICustomStudentBase[
    52 #    'phone'].order
     51ICustomStudentBase['email2'].order = ICustomStudentBase[
     52    'phone'].order
    5353ICustomStudentBase['phone'].order = ICustomStudentBase[
    5454    'email'].order
     
    6969        )
    7070
    71     #email2 = schema.ASCIILine(
    72     #    title = _(u'Second Email'),
    73     #    required = False,
    74     #    constraint=validate_email,
    75     #    )
     71    email2 = schema.ASCIILine(
     72        title = _(u'Second Email'),
     73        required = False,
     74        constraint=validate_email,
     75        )
    7676
    7777    phone = PhoneNumber(
Note: See TracChangeset for help on using the changeset viewer.