Ignore:
Timestamp:
1 Feb 2017, 06:46:52 (8 years ago)
Author:
Henrik Bettermann
Message:

Make some fields required and hide reg_number on display page.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py

    r14472 r14486  
    228228        if self.target is not None and self.target == 'trans':
    229229            form_fields = grok.AutoFields(ITranscriptApplicant).omit(
    230                 'locked', 'suspended')
     230                'locked', 'suspended', 'reg_number')
    231231            form_fields['dispatch_address'].custom_widget = BytesDisplayWidget
    232232            form_fields['perm_address'].custom_widget = BytesDisplayWidget
     
    234234        if self.target is not None and self.target == 'cert':
    235235            form_fields = grok.AutoFields(ICertificateRequest).omit(
    236                 'locked', 'suspended')
     236                'locked', 'suspended', 'reg_number')
    237237            form_fields['dispatch_address'].custom_widget = BytesDisplayWidget
    238238            form_fields['perm_address'].custom_widget = BytesDisplayWidget
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py

    r14472 r14486  
    493493
    494494    reg_number = TextLineChoice(
    495         title = _(u'Registration Number'),
     495        title = _(u'Kofa Registration Number'),
    496496        readonly = False,
    497497        required = True,
     
    517517        title = _(u'Matriculation Number'),
    518518        readonly = False,
    519         required = False,
     519        required = True,
    520520        )
    521521
     
    588588        title = _(u'Course of Study / Degree'),
    589589        source = CertificateSource(),
    590         required = False,
     590        required = True,
    591591        readonly = False,
    592592        )
     
    646646
    647647    reg_number = TextLineChoice(
    648         title = _(u'Registration Number'),
     648        title = _(u'Kofa Registration Number'),
    649649        readonly = False,
    650650        required = True,
     
    670670        title = _(u'Matriculation Number'),
    671671        readonly = False,
    672         required = False,
     672        required = True,
    673673        )
    674674
     
    734734        title = _(u'Course of Study / Degree'),
    735735        source = CertificateSource(),
    736         required = False,
     736        required = True,
    737737        readonly = False,
    738738        )
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r14371 r14486  
    242242        self.browser.getControl(name="form.lastname").value = 'Merkel'
    243243        self.browser.getControl(name="form.no_copies").value = ['3']
     244        self.browser.getControl(name="form.course_studied").value = ['CERT1']
     245        self.browser.getControl(name="form.matric_number").value = '234'
    244246        self.browser.getControl("Save").click()
    245247        self.browser.getControl("Add online payment ticket").click()
Note: See TracChangeset for help on using the changeset viewer.