Ignore:
Timestamp:
11 Mar 2024, 11:28:19 (8 months ago)
Author:
Henrik Bettermann
Message:

Further customizations

Location:
main/kofacustom.udss/trunk/src/kofacustom/udss/applicants
Files:
3 edited

Legend:

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

    r17712 r17714  
    2424    ApplicantRegistrationPage, ApplicantsContainerPage)
    2525from waeup.kofa.applicants.browser import (
     26    AdditionalFile,
    2627    ApplicantDisplayFormPage,
    2728    ApplicantManageFormPage,
     
    118119        return True
    119120
     121
     122class FirsttermResult(AdditionalFile):
     123    """Renders the pdf form extension for applicants.
     124    """
     125    grok.name('firsttermresult')
     126
     127class BirthCertificate(AdditionalFile):
     128    """Renders the pdf form extension for applicants.
     129    """
     130    grok.name('birthcertificate')
  • main/kofacustom.udss/trunk/src/kofacustom/udss/applicants/interfaces.py

    r17712 r17714  
    4848        required = False,
    4949        )
    50 
    5150    applicant_id = schema.TextLine(
    5251        title = _(u'Applicant Id'),
     
    5453        readonly = False,
    5554        )
    56 
    5755    reg_number = TextLineChoice(
    5856        title = _(u'Registration Number'),
     
    6159        source = contextual_reg_num_source,
    6260        )
    63 
    6461    firstname = schema.TextLine(
    6562        title = _(u'First Name'),
    6663        required = True,
    6764        )
    68 
    6965    middlename = schema.TextLine(
    7066        title = _(u'Middle Name'),
    7167        required = False,
    7268        )
    73 
    7469    lastname = schema.TextLine(
    7570        title = _(u'Last Name (Surname)'),
    7671        required = True,
    7772        )
    78 
    7973    date_of_birth = FormattedDate(
    8074        title = _(u'Date of Birth'),
     
    8276        show_year = True,
    8377        )
    84 
    8578    sex = schema.Choice(
    8679        title = _(u'Gender'),
     
    119112    present_class_comment = schema.Text(
    120113        title = _(u'Child\'s Present Class'),
    121         description = u'Indicate the child\'s present class. Please attach a copy of the first term result of the present class. Children in Basic Four or less than 10yrs by October should not apply.',
     114        description = u'Indicate the child\'s present class. Please upload a '
     115                       'copy of the first term result of the present class. '
     116                       'Children in Basic Four or less than 10yrs by October '
     117                       'should not apply.',
    122118        required = False,
    123119        )
    124120    handicapped_comment = schema.Text(
    125121        title = _(u'Health Problems'),
    126         description = u'Does the child has any special health problem or handicap? If yes, give details.',
     122        description = u'Does the child has any special health problem or handicap? '
     123                       'If yes, give details.',
    127124        required = False,
    128125        )
     
    133130    genotype = schema.TextLine(
    134131        title = _(u'Genotype'),
     132        required = False,
     133        )
     134    father_firstname = schema.TextLine(
     135        title = _(u'First Name of Father'),
     136        required = False,
     137        )
     138    father_middlename = schema.TextLine(
     139        title = _(u'Middle Name of Father'),
     140        required = False,
     141        )
     142    father_lastname = schema.TextLine(
     143        title = _(u'Last Name (Surname) of Father'),
     144        required = False,
     145        )
     146    father_status = schema.TextLine(
     147        title = _(u'Father\'s Status and Rank'),
     148        required = False,
     149        )
     150    father_employer = schema.TextLine(
     151        title = _(u'Father\'s Employer'),
     152        required = False,
     153        )
     154    father_res_address = schema.Text(
     155        title = _(u'Father\'s Residential Address'),
     156        required = False,
     157        )
     158    father_contact_address = schema.Text(
     159        title = _(u'Father\'s Contact Address (incl. P.O. Box)'),
     160        required = False,
     161        )
     162    mother_firstname = schema.TextLine(
     163        title = _(u'First Name of Mother'),
     164        required = False,
     165        )
     166    mother_middlename = schema.TextLine(
     167        title = _(u'Middle Name of Mother'),
     168        required = False,
     169        )
     170    mother_lastname = schema.TextLine(
     171        title = _(u'Last Name (Surname) of Mother'),
     172        required = False,
     173        )
     174    mother_status = schema.TextLine(
     175        title = _(u'Mother\'s Status and Rank'),
     176        required = False,
     177        )
     178    mother_employer = schema.TextLine(
     179        title = _(u'Mother\'s Employer'),
     180        required = False,
     181        )
     182    mother_res_address = schema.Text(
     183        title = _(u'Mother\'s Residential Address'),
     184        required = False,
     185        )
     186    mother_contact_address = schema.Text(
     187        title = _(u'Mother\'s Contact Address (incl. P.O. Box)'),
     188        required = False,
     189        )
     190    responsible = schema.TextLine(
     191        title = _(u'Financial Responsibility'),
     192        description = u'Who will responsible for for the child\'s school '
     193                       'fees and other fiancial commitments?',
    135194        required = False,
    136195        )
     
    147206        title = _(u'Form locked'),
    148207        default = False,
    149         required = False,
    150         )
    151 
    152 
    153     father_firstname = schema.TextLine(
    154         title = _(u'First Name of Father'),
    155         required = False,
    156         )
    157     father_middlename = schema.TextLine(
    158         title = _(u'Middle Name of Father'),
    159         required = False,
    160         )
    161     father_lastname = schema.TextLine(
    162         title = _(u'Last Name (Surname) of Father'),
    163         required = False,
    164         )
    165     father_status = schema.TextLine(
    166         title = _(u'Father\'s Status and Rank'),
    167         required = False,
    168         )
    169     father_employer = schema.TextLine(
    170         title = _(u'Father\'s Employer'),
    171         required = False,
    172         )
    173     father_res_address = schema.Text(
    174         title = _(u'Father\'s Residential Address'),
    175         required = False,
    176         )
    177     father_contact_address = schema.Text(
    178         title = _(u'Father\'s Contact Address (incl. P.O. Box)'),
    179         required = False,
    180         )
    181 
    182     mother_firstname = schema.TextLine(
    183         title = _(u'First Name of Mother'),
    184         required = False,
    185         )
    186     mother_middlename = schema.TextLine(
    187         title = _(u'Middle Name of Mother'),
    188         required = False,
    189         )
    190     mother_lastname = schema.TextLine(
    191         title = _(u'Last Name (Surname) of Mother'),
    192         required = False,
    193         )
    194     mother_status = schema.TextLine(
    195         title = _(u'Mother\'s Status and Rank'),
    196         required = False,
    197         )
    198     mother_employer = schema.TextLine(
    199         title = _(u'Mother\'s Employer'),
    200         required = False,
    201         )
    202     mother_res_address = schema.Text(
    203         title = _(u'Mother\'s Residential Address'),
    204         required = False,
    205         )
    206     mother_contact_address = schema.Text(
    207         title = _(u'Mother\'s Contact Address (incl. P.O. Box)'),
    208208        required = False,
    209209        )
  • main/kofacustom.udss/trunk/src/kofacustom/udss/applicants/utils.py

    r17712 r17714  
    3030    """
    3131
     32    ADDITIONAL_FILES = (('First Term Result of Present Class','firsttermresult'),
     33        ('Birth Certificate','birthcertificate'),)
     34
    3235    APP_TYPES_DICT = {
    3336        'app': ['General Application', 'APP'],
     
    3538
    3639    SEPARATORS_DICT = {
    37         'form.applicant_id': 'Personal Data of the Child',
    38         'form.notice': 'Application Process Information',
    39         'form.father_firstname': 'Personal Data of Parents/Guardians',
     40        'form.applicant_id': 'Section A: Personal Data of the Child',
     41        'form.notice': 'Section G: Application Process Information',
     42        'form.father_firstname': 'Section C: Personal Data of Parents/Guardians',
    4043        }
Note: See TracChangeset for help on using the changeset viewer.