Changeset 5165 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 23 Apr 2010, 06:58:42 (15 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
r4542 r5165 31 31 32 32 #manage = "manage" in request.keys() 33 screening_types = ('prence','pume','pce','pde','cest','sandwich','dp','ct','pt' )33 screening_types = ('prence','pume','pce','pde','cest','sandwich','dp','ct','pt','sandwich2008') 34 34 if not (traverse_subpath and traverse_subpath[0] in screening_types): 35 35 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) … … 40 40 headings['prence'] = 'Apply for Pre-NCE Programme (2007/2008)! ' 41 41 headings['pce'] = 'Apply for PCE Screening (2009/2010)! ' 42 headings['cest'] = 'Apply for Part-Time Degree or Diploma Programmes (2008/2009)! ' 42 headings['sandwich2008'] = 'Apply for Part Time Degree in Education (2008/2009)! ' 43 headings['cest'] = 'Apply for Part-Time Degree or Diploma Programmes (2009/2010)! ' 43 44 headings['pt'] = 'Apply for Part-Time Degree (2009/2010)! ' 44 45 headings['dp'] = 'Apply for Diploma Programmes (2009/2010)! ' 45 46 headings['ct'] = 'Apply for Certificate Programmes (2009/2010)! ' 46 headings['sandwich'] = 'Apply for Part Time Degree in Education (200 8/2009)! '47 headings['sandwich'] = 'Apply for Part Time Degree in Education (2009/2010)! ' 47 48 configuration += ('heading',headings), 48 49 … … 52 53 headings_slip['prence'] = 'Pre-NCE Application (2007/2008) Acknowledgement Slip' 53 54 headings_slip['pce'] = 'PCE Screening (2009/2010) Acknowledgement Slip' 54 headings_slip['cest'] = 'CEST Application (2008/2009) Acknowledgement Slip' 55 headings_slip['sandwich2008'] = 'Application for Part Time Degree in Education (2008/2009) Acknowledgement Slip' 56 headings_slip['cest'] = 'CEST Application (2009/2010) Acknowledgement Slip' 55 57 headings_slip['pt'] = 'Part-Time Degree Application (2009/2010) Acknowledgement Slip' 56 58 headings_slip['dp'] = 'Diploma Programme Application (2009/2010) Acknowledgement Slip' 57 59 headings_slip['ct'] = 'Certificate Programme Application (2009/2010) Acknowledgement Slip' 58 headings_slip['sandwich'] = 'Application for Part Time Degree in Education (200 8/2009) Acknowledgement Slip'60 headings_slip['sandwich'] = 'Application for Part Time Degree in Education (2009/2010) Acknowledgement Slip' 59 61 configuration += ('heading_slip',headings_slip), 60 62 … … 68 70 deaddates['prence'] = DateTime.DateTime(pprops.date1) 69 71 deaddates['pce'] = DateTime.DateTime(pprops.date5) 72 deaddates['sandwich2008'] = DateTime.DateTime(pprops.date1) #is expired like pume 70 73 deaddates['cest'] = DateTime.DateTime(pprops.date3) 71 74 deaddates['sandwich'] = DateTime.DateTime(pprops.date4) … … 85 88 confirm['prence'] = "I confirm that the Passport Photograph uploaded on this form is a true picture of me." 86 89 confirm['pce'] = "I confirm that the Passport Photograph uploaded on this form is a true picture of me." 87 confirm['cest'] = confirm['sandwich'] = confirm['pt'] = confirm['dp'] = confirm['ct'] = """I hereby acknowledge90 confirm['cest'] = confirm['sandwich'] = confirm['pt'] = confirm['dp'] = confirm['ct'] = confirm['sandwich2008'] = """I hereby acknowledge 88 91 by ticking this check box that if it is discovered 89 92 at any time, that I do not possess any of the qualifications, which I have obtained, I will be … … 123 126 if traverse_subpath and traverse_subpath[0] in screening_types: 124 127 screening_type = traverse_subpath[0] 125 without_reg_no = screening_type in ('prence','cest','sandwich' )128 without_reg_no = screening_type in ('prence','cest','sandwich','sandwich2008') 126 129 info['expired'] = current.greaterThan(deaddates[screening_type]) 127 130 info['expiration_date'] = deaddates[screening_type] … … 160 163 if without_reg_no: 161 164 ## see fceokene #147 162 reg_no = ds.get('pin_n','').upper() 163 #reg_no = ds.get('pin_p') + ds.get('pin_b') + ds.get('pin_n') 165 if screening_type == 'sandwich2008': 166 reg_no = ds.get('pin_n','').upper() 167 else: 168 reg_no = ds.get('pin_p') + ds.get('pin_b') + ds.get('pin_n') 164 169 else: 165 170 reg_no = ds.get('reg_no') -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission_form.pt
r4388 r5165 86 86 <p>Instructions :</p> 87 87 <ul> 88 <li>Enter your <span tal:condition="python:not info['screening_type'] in ('prence','cest','sandwich' )">JAMB Registration Number and the</span> Application PIN.</li>88 <li>Enter your <span tal:condition="python:not info['screening_type'] in ('prence','cest','sandwich','sandwich2008')">JAMB Registration Number and the</span> Application PIN.</li> 89 89 <li>Fill the form and upload your Passport Photograph with red background in jpg format.</li> 90 90 <li>Save and preview picture. -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission_manage_form.pt
r3887 r5165 63 63 <span tal:condition="rendered_main"> 64 64 <h3>Application Record <span tal:replace="reg_no"/> 65 <tal:block condition="python: ds['screening_type'] == 'cest'and ccode">65 <tal:block condition="python: ds['screening_type'] in ('cest','sandwich2008') and ccode"> 66 66 (<span tal:replace="python:'%s%s/%s' % (ccode[:3],serial,context.getSessionId()[0])" />) 67 67 </tal:block> -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission_slip.pt
r3887 r5165 12 12 app_no string:${ccode}${serial}/${session_id}; 13 13 screening_type options/ds/screening_type; 14 with_app_no python: screening_type in ('cest','sandwich' );14 with_app_no python: screening_type in ('cest','sandwich','sandwich2008'); 15 15 " 16 16 >
Note: See TracChangeset for help on using the changeset viewer.