Changeset 13679 for main/waeup.aaue/trunk/src/waeup/aaue/applicants
- Timestamp:
- 11 Feb 2016, 13:23:15 (9 years ago)
- 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
r13547 r13679 49 49 'hq_degree2', 'hq_school2', 'hq_session2', 'hq_disc2', 50 50 'hq_type3', 'hq_fname3', 'hq_matric_no3', 51 'hq_degree3', 'hq_school3', 'hq_session3', 'hq_disc3' 51 'hq_degree3', 'hq_school3', 'hq_session3', 'hq_disc3', 52 'nysc_year', 53 'nysc_location', 54 'nysc_lga', 55 'employer', 56 'emp_position', 57 'emp_start', 58 'emp_end', 59 'emp_reason', 60 'employer2', 61 'emp2_position', 62 'emp2_start', 63 'emp2_end', 64 'emp2_reason', 65 'former_matric', 52 66 ) 53 67 UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + ( … … 65 79 'jamb_score', 66 80 'jamb_reg_number', 67 'aggregate') 81 'aggregate', 82 ) 68 83 69 84 #UG_OMIT_PDF_FIELDS = tuple([ … … 74 89 # 'alr_results', 'notice' 75 90 # ) 76 77 FP_OMIT_DISPLAY_FIELDS = UG_OMIT_DISPLAY_FIELDS + UG_OMIT_FIELDS78 FP_OMIT_PDF_FIELDS = UG_OMIT_PDF_FIELDS + UG_OMIT_FIELDS79 FP_OMIT_MANAGE_FIELDS = UG_OMIT_MANAGE_FIELDS + UG_OMIT_FIELDS80 FP_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + UG_OMIT_FIELDS81 91 82 92 PG_OMIT_FIELDS = ( … … 102 112 PG_OMIT_PDF_FIELDS = PG_OMIT_DISPLAY_FIELDS + PG_OMIT_FIELDS + ( 103 113 'reg_number','alr_fname', 'alr_no', 'alr_date', 104 'alr_results', 'notice') 114 'alr_results', 'notice', 115 'nysc_year', 116 'nysc_location', 117 'nysc_lga', 118 'employer', 119 'emp_position', 120 'emp_start', 121 'emp_end', 122 'emp_reason', 123 'employer2', 124 'emp2_position', 125 'emp2_start', 126 'emp2_end', 127 'emp2_reason', 128 'former_matric', 129 ) 105 130 PG_OMIT_MANAGE_FIELDS = ( 106 131 'special_application','jamb_subjects_list',) + PG_OMIT_FIELDS 107 132 PG_OMIT_EDIT_FIELDS = PG_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + ( 133 'student_id', 134 'notice', 135 ) 136 137 PTEE_OMIT_FIELDS = ( 138 'programme_type', 139 'jamb_age', 140 'jamb_subjects', 141 'jamb_score', 142 'jamb_reg_number', 143 'aggregate' 144 ) 145 PTEE_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + ( 146 'jamb_subjects_list',) + PTEE_OMIT_FIELDS 147 PTEE_OMIT_PDF_FIELDS = PTEE_OMIT_DISPLAY_FIELDS + PTEE_OMIT_FIELDS + ( 148 'reg_number','alr_fname', 'alr_no', 'alr_date', 149 'alr_results', 'notice', 150 'nysc_year', 151 'nysc_location', 152 'nysc_lga', 153 'employer', 154 'emp_position', 155 'emp_start', 156 'emp_end', 157 'emp_reason', 158 'employer2', 159 'emp2_position', 160 'emp2_start', 161 'emp2_end', 162 'emp2_reason', 163 'former_matric', 164 ) 165 PTEE_OMIT_MANAGE_FIELDS = ( 166 'special_application','jamb_subjects_list',) + PTEE_OMIT_FIELDS 167 PTEE_OMIT_EDIT_FIELDS = PTEE_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + ( 108 168 'student_id', 109 169 'notice', … … 127 187 for field in PG_OMIT_DISPLAY_FIELDS: 128 188 form_fields = form_fields.omit(field) 129 elif self.target is not None and self.target.startswith(' fp'):130 for field in FP_OMIT_DISPLAY_FIELDS:189 elif self.target is not None and self.target.startswith('ptee'): 190 for field in PTEE_OMIT_DISPLAY_FIELDS: 131 191 form_fields = form_fields.omit(field) 132 192 else: … … 159 219 column_two_fields = ('applicant_id', 'reg_number', 160 220 'firstname', 'middlename', 'lastname', 'sex', 'date_of_birth') 161 two_columns_design_fields = [162 'fst_sit_fname', 'fst_sit_no', 'fst_sit_date',163 'fst_sit_type', 'fst_sit_results',164 'scd_sit_fname', 'scd_sit_no', 'scd_sit_date',165 'scd_sit_type', 'scd_sit_results']221 #two_columns_design_fields = [ 222 # 'fst_sit_fname', 'fst_sit_no', 'fst_sit_date', 223 # 'fst_sit_type', 'fst_sit_results', 224 # 'scd_sit_fname', 'scd_sit_no', 'scd_sit_date', 225 # 'scd_sit_type', 'scd_sit_results'] 166 226 167 227 @property … … 186 246 for field in PG_OMIT_PDF_FIELDS: 187 247 form_fields = form_fields.omit(field) 188 elif self.target is not None and self.target.startswith(' fp'):189 for field in FP_OMIT_PDF_FIELDS:248 elif self.target is not None and self.target.startswith('ptee'): 249 for field in PTEE_OMIT_PDF_FIELDS: 190 250 form_fields = form_fields.omit(field) 191 251 else: … … 217 277 for field in PG_OMIT_MANAGE_FIELDS: 218 278 form_fields = form_fields.omit(field) 219 elif self.target is not None and self.target.startswith(' fp'):220 for field in FP_OMIT_MANAGE_FIELDS:279 elif self.target is not None and self.target.startswith('ptee'): 280 for field in PTEE_OMIT_MANAGE_FIELDS: 221 281 form_fields = form_fields.omit(field) 222 282 else: … … 245 305 for field in PG_OMIT_EDIT_FIELDS: 246 306 form_fields = form_fields.omit(field) 247 elif self.target is not None and self.target.startswith(' fp'):248 for field in FP_OMIT_EDIT_FIELDS:307 elif self.target is not None and self.target.startswith('ptee'): 308 for field in PTEE_OMIT_EDIT_FIELDS: 249 309 form_fields = form_fields.omit(field) 250 310 else: -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py
r13549 r13679 314 314 readonly = False, 315 315 ) 316 317 nysc_year = schema.Int( 318 title = _(u'Nysc Year'), 319 required = False, 320 readonly = False, 321 ) 322 323 nysc_location = schema.TextLine( 324 title = _(u'Nysc Location'), 325 required = False, 326 ) 327 328 nysc_lga = schema.Choice( 329 source = LGASource(), 330 title = _(u'Nysc LGA'), 331 required = False, 332 ) 333 334 employer = schema.TextLine( 335 title = _(u'Employer'), 336 required = False, 337 readonly = False, 338 ) 339 340 emp_position = schema.TextLine( 341 title = _(u'Employer Position'), 342 required = False, 343 readonly = False, 344 ) 345 346 emp_start = FormattedDate( 347 title = _(u'Start Date'), 348 required = False, 349 readonly = False, 350 show_year = True, 351 ) 352 353 emp_end = FormattedDate( 354 title = _(u'End Date'), 355 required = False, 356 readonly = False, 357 show_year = True, 358 ) 359 360 emp_reason = schema.TextLine( 361 title = _(u'Reason for Leaving'), 362 required = False, 363 readonly = False, 364 ) 365 366 employer2 = schema.TextLine( 367 title = _(u'2nd Employer'), 368 required = False, 369 readonly = False, 370 ) 371 372 emp2_position = schema.TextLine( 373 title = _(u'2nd Employer Position'), 374 required = False, 375 readonly = False, 376 ) 377 378 emp2_start = FormattedDate( 379 title = _(u'Start Date'), 380 required = False, 381 readonly = False, 382 show_year = True, 383 ) 384 385 emp2_end = FormattedDate( 386 title = _(u'End Date'), 387 required = False, 388 readonly = False, 389 show_year = True, 390 ) 391 392 emp2_reason = schema.TextLine( 393 title = _(u'Reason for Leaving'), 394 required = False, 395 readonly = False, 396 ) 397 398 former_matric = schema.TextLine( 399 title = _(u'If yes, matric number'), 400 required = False, 401 readonly = False, 402 ) 403 316 404 notice = schema.Text( 317 405 title = _(u'Notice'), -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py
r13568 r13679 54 54 'form.presently_inst': _(u'Presently attending a course or programme'), 55 55 'form.olevel_type': _(u"'O' Level Records"), 56 56 'form.former_matric': _(u'Former Student'), 57 57 } 58 58
Note: See TracChangeset for help on using the changeset viewer.