Ignore:
Timestamp:
11 May 2020, 07:50:40 (5 years ago)
Author:
Henrik Bettermann
Message:

Add institution email.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r15975 r16088  
    7575    form_fields = grok.AutoFields(ICustomStudentBase).omit(
    7676        'password', 'suspended', 'suspended_comment',
    77         'flash_notice', 'provisionally_cleared')
     77        'flash_notice', 'provisionally_cleared', 'parents_email')
    7878    form_fields[
    7979        'financial_clearance_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    8080
    81 #class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage):
    82 #    """ View to manage student base data
    83 #    """
    84 #    form_fields = grok.AutoFields(ICustomStudentBase).omit(
    85 #        'student_id', 'adm_code', 'suspended',
    86 #        'financially_cleared_by', 'financial_clearance_date')
     81class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage):
     82    """ View to manage student base data
     83    """
     84    form_fields = grok.AutoFields(ICustomStudentBase).omit(
     85        'student_id', 'adm_code', 'suspended',
     86        'financially_cleared_by', 'financial_clearance_date',
     87        'parents_email')
    8788
    8889class CustomOnlinePaymentDisplayFormPage(NigeriaOnlinePaymentDisplayFormPage):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py

    r15371 r16088  
    3939        required = False,
    4040        )
     41
     42    email2 = schema.ASCIILine(
     43        title = _(u'Institution Email'),
     44        required = False,
     45        constraint=validate_email,
     46        )
     47
     48ICustomStudentBase['email2'].order = ICustomStudentBase[
     49    'phone'].order
     50ICustomStudentBase['phone'].order = ICustomStudentBase[
     51    'email'].order
    4152
    4253class ICustomStudentPersonal(INigeriaStudentPersonal):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py

    r15828 r16088  
    4848        self.assertMatches(
    4949            'adm_code,alr_date,alr_fname,alr_no,alr_results,'
    50             'clr_code,date_of_birth,def_adm,disabled,email,emp2_end,'
     50            'clr_code,date_of_birth,def_adm,disabled,email,email2,emp2_end,'
    5151            'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,'
    5252            'emp_reason,emp_start,employer,employer2,'
     
    6767            'current_level,current_session\r\nmy adm code,,,,'
    6868            '"[(\'printing_craft_practice\', \'A1\')]",my clr code,1981-02-04#,,,'
    69             'anna@sample.com,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
     69            'anna@sample.com,,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
    7070            ',,,,,,,,,,,,,,,,Tester,,,,234,M.,NG,,,,,,,,,,,'
    7171            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,'
Note: See TracChangeset for help on using the changeset viewer.