Changeset 14472


Ignore:
Timestamp:
27 Jan 2017, 15:50:38 (8 years ago)
Author:
Henrik Bettermann
Message:

Do not allow to edit the registration number.

Add matric_number 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/browser.py

    r14465 r14472  
    414414                'locked', 'suspended')
    415415            form_fields['applicant_id'].for_display = True
     416            form_fields['reg_number'].for_display = True
    416417            return form_fields
    417418        if self.target is not None and self.target == 'cert':
     
    419420                'locked', 'suspended')
    420421            form_fields['applicant_id'].for_display = True
     422            form_fields['reg_number'].for_display = True
    421423            return form_fields
    422424        # AAUE is using the same interface for all regular applications.
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py

    r14471 r14472  
    492492        )
    493493
     494    reg_number = TextLineChoice(
     495        title = _(u'Registration Number'),
     496        readonly = False,
     497        required = True,
     498        source = contextual_reg_num_source,
     499        )
     500
    494501    firstname = schema.TextLine(
    495502        title = _(u'First Name'),
     
    507514        )
    508515
    509     reg_number = TextLineChoice(
    510         title = _(u'Registration Number'),
    511         readonly = False,
    512         required = True,
    513         source = contextual_reg_num_source,
     516    matric_number = schema.TextLine(
     517        title = _(u'Matriculation Number'),
     518        readonly = False,
     519        required = False,
    514520        )
    515521
     
    639645        )
    640646
     647    reg_number = TextLineChoice(
     648        title = _(u'Registration Number'),
     649        readonly = False,
     650        required = True,
     651        source = contextual_reg_num_source,
     652        )
     653
    641654    firstname = schema.TextLine(
    642655        title = _(u'First Name'),
     
    654667        )
    655668
    656     reg_number = TextLineChoice(
    657         title = _(u'Registration Number'),
    658         readonly = False,
    659         required = True,
    660         source = contextual_reg_num_source,
     669    matric_number = schema.TextLine(
     670        title = _(u'Matriculation Number'),
     671        readonly = False,
     672        required = False,
    661673        )
    662674
Note: See TracChangeset for help on using the changeset viewer.