Changeset 17714 for main/kofacustom.udss/trunk/src/kofacustom
- Timestamp:
- 11 Mar 2024, 11:28:19 (10 months ago)
- 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 24 24 ApplicantRegistrationPage, ApplicantsContainerPage) 25 25 from waeup.kofa.applicants.browser import ( 26 AdditionalFile, 26 27 ApplicantDisplayFormPage, 27 28 ApplicantManageFormPage, … … 118 119 return True 119 120 121 122 class FirsttermResult(AdditionalFile): 123 """Renders the pdf form extension for applicants. 124 """ 125 grok.name('firsttermresult') 126 127 class 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 48 48 required = False, 49 49 ) 50 51 50 applicant_id = schema.TextLine( 52 51 title = _(u'Applicant Id'), … … 54 53 readonly = False, 55 54 ) 56 57 55 reg_number = TextLineChoice( 58 56 title = _(u'Registration Number'), … … 61 59 source = contextual_reg_num_source, 62 60 ) 63 64 61 firstname = schema.TextLine( 65 62 title = _(u'First Name'), 66 63 required = True, 67 64 ) 68 69 65 middlename = schema.TextLine( 70 66 title = _(u'Middle Name'), 71 67 required = False, 72 68 ) 73 74 69 lastname = schema.TextLine( 75 70 title = _(u'Last Name (Surname)'), 76 71 required = True, 77 72 ) 78 79 73 date_of_birth = FormattedDate( 80 74 title = _(u'Date of Birth'), … … 82 76 show_year = True, 83 77 ) 84 85 78 sex = schema.Choice( 86 79 title = _(u'Gender'), … … 119 112 present_class_comment = schema.Text( 120 113 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.', 122 118 required = False, 123 119 ) 124 120 handicapped_comment = schema.Text( 125 121 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.', 127 124 required = False, 128 125 ) … … 133 130 genotype = schema.TextLine( 134 131 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?', 135 194 required = False, 136 195 ) … … 147 206 title = _(u'Form locked'), 148 207 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)'),208 208 required = False, 209 209 ) -
main/kofacustom.udss/trunk/src/kofacustom/udss/applicants/utils.py
r17712 r17714 30 30 """ 31 31 32 ADDITIONAL_FILES = (('First Term Result of Present Class','firsttermresult'), 33 ('Birth Certificate','birthcertificate'),) 34 32 35 APP_TYPES_DICT = { 33 36 'app': ['General Application', 'APP'], … … 35 38 36 39 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', 40 43 }
Note: See TracChangeset for help on using the changeset viewer.