Ignore:
Timestamp:
8 Apr 2020, 10:48:10 (5 years ago)
Author:
Henrik Bettermann
Message:

Change headlines and add referee entry field.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
Files:
5 edited

Legend:

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

    r16017 r16049  
    4343    #UG_OMIT_MANAGE_FIELDS,
    4444    #UG_OMIT_EDIT_FIELDS,
    45     PG_OMIT_DISPLAY_FIELDS,
    46     PG_OMIT_PDF_FIELDS,
    47     PG_OMIT_MANAGE_FIELDS,
    48     PG_OMIT_EDIT_FIELDS,
     45    #PG_OMIT_DISPLAY_FIELDS,
     46    #PG_OMIT_PDF_FIELDS,
     47    #PG_OMIT_MANAGE_FIELDS,
     48    #PG_OMIT_EDIT_FIELDS,
    4949    )
    5050from kofacustom.iuokada.applicants.interfaces import (
     
    7878    'aggregate')
    7979
     80# PG has its own interface
     81PG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS
     82PG_OMIT_PDF_FIELDS = PG_OMIT_DISPLAY_FIELDS + ('phone',)
     83PG_OMIT_MANAGE_FIELDS = (
     84    'special_application',
     85    'employer',
     86    'emp_position',
     87    'emp_start',
     88    'emp_end',
     89    'emp_reason',
     90    'employer2',
     91    'emp2_position',
     92    'emp2_start',
     93    'emp2_end',
     94    'emp2_reason',
     95    )
     96PG_OMIT_EDIT_FIELDS = PG_OMIT_MANAGE_FIELDS + PG_OMIT_DISPLAY_FIELDS + (
     97    'student_id', 'notice',
     98    'screening_score', 'screening_venue',
     99    'screening_date',)
     100
    80101class CustomApplicantsContainerPage(ApplicantsContainerPage):
    81102    """The standard view for regular applicant containers.
     
    142163    """An applicant-centered edit view for applicant data.
    143164    """
     165
     166    @property
     167    def display_refereereports(self):
     168        return True
    144169
    145170    def display_fileupload(self, filename):
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py

    r15884 r16049  
    3030from waeup.kofa.applicants.interfaces import (
    3131    contextual_reg_num_source, IApplicantBaseData)
     32from waeup.kofa.refereeentries import RefereeEntryField
    3233from kofacustom.nigeria.applicants.interfaces import (
    3334    LGASource, high_qual, high_grade, exam_types, DisabilitiesSource,
     
    325326        )
    326327
     328    nysc_number = schema.Int(
     329        title = _(u'Nysc Number'),
     330        required = False,
     331        readonly = False,
     332        )
     333
     334    referees = schema.List(
     335        title = _(u'Referees'),
     336        value_type = RefereeEntryField(),
     337        required = False,
     338        defaultFactory=list,
     339        )
     340
     341ICustomPGApplicant[
     342    'referees'].order =  INigeriaPGApplicant['emp2_reason'].order
    327343ICustomPGApplicant[
    328344    'sponsor'].order =  ICustomPGApplicant['lga'].order
     
    333349ICustomPGApplicant[
    334350    'lga'].order =  ICustomPGApplicant['nationality'].order
     351ICustomPGApplicant[
     352    'nysc_number'].order =  ICustomPGApplicant['nysc_year'].order
    335353
    336354class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant):
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/utils.py

    r16017 r16049  
    5959        'form.applicant_id': _(u'Base Data'),
    6060        'form.course1': _(u'Programmes/Courses Desired'),
    61         'form.hq_type': _(u'Higher Education Record (Direct Entry and Transfer Applicants)'),
     61        'form.hq_type': _(u'Highest Educational Record (Direct Entry and Transfer Applicants)'),
    6262        'form.presently': _(u'Course or Programme Presently Attending'),
    63         'form.nysc_year': _(u'NYSC Information'),
     63        'form.nysc_year': _(u'NYSC Information/Exemption Certificate'),
    6464        'form.employer': _(u'Employment History'),
    6565        'form.jamb_subjects': _(u'JAMB Data (All Applicants)'),
     
    7070        'form.fst_sit_fname': _(u'First Sitting Record'),
    7171        'form.scd_sit_fname': _(u'Second Sitting Record'),
    72         'form.referees': _(u'Referees'),
     72        'form.referees': _(u'Referees (will be automatically invited by email after final submission)'),
    7373        'form.parents_name': _(u'Parents / Guardian'),
    7474        }
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/locales/en/LC_MESSAGES/waeup.kofa.po

    r16015 r16049  
    121121msgid "Balance Amount"
    122122msgstr "Custom/Balance Amount"
     123
     124msgid ""
     125"Email Address (referees will be automatically invited by email after final "
     126"submission of this form)"
     127msgstr "Email Address"
Note: See TracChangeset for help on using the changeset viewer.