Changeset 16471


Ignore:
Timestamp:
20 Apr 2021, 07:16:10 (4 years ago)
Author:
Henrik Bettermann
Message:

Add two fields to transcript application.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
2 edited

Legend:

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

    r16347 r16471  
    494494        if self.target is not None and self.target == 'tscf':
    495495            form_fields = grok.AutoFields(ITranscriptApplicant)
     496            form_fields['courier_tno'].for_display = True
     497            form_fields['proc_date'].for_display = True
    496498            for field in TRANS_OMIT_EDIT_FIELDS:
    497499                form_fields = form_fields.omit(field)
     
    500502        if self.target is not None and self.target == 'tscs':
    501503            form_fields = grok.AutoFields(ITranscriptApplicant)
     504            form_fields['courier_tno'].for_display = True
     505            form_fields['proc_date'].for_display = True
    502506            for field in TRANS_SHORT_OMIT_EDIT_FIELDS:
    503507                form_fields = form_fields.omit(field)
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r16376 r16471  
    423423        )
    424424
     425    courier_tno = schema.TextLine(
     426        title = _(u'Courier Tracking Number'),
     427        required = False,
     428        )
     429
     430    proc_date = FormattedDate(
     431        title = _(u'Processing Date'),
     432        required = False,
     433        #date_format = u'%d/%m/%Y', # Use grok-instance-wide default
     434        show_year = True,
     435        )
     436
     437
    425438class ICustomUGApplicant(IApplicantBaseData, IBankAccount):
    426439    """An undergraduate applicant.
Note: See TracChangeset for help on using the changeset viewer.