Changeset 2324 for WAeUP_SRP/base/skins
- Timestamp:
- 7 Oct 2007, 06:18:46 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/apply_admission.py
r2323 r2324 49 49 validate = False 50 50 #layout = "application_pume" 51 # application_type = ""51 #screening_type = "" 52 52 without_reg_no = False 53 53 54 54 # if traverse_subpath and traverse_subpath[0] == "prence": 55 55 # layout = "application_prence" 56 # application_type = "prence"56 # screening_type = "prence" 57 57 # without_reg_no = True 58 58 # elif traverse_subpath and traverse_subpath[0] == "pume": 59 59 # layout = "application_pume" 60 # application_type = "pume"60 # screening_type = "pume" 61 61 # elif traverse_subpath and traverse_subpath[0] == "pce": 62 62 # layout = "application_pce" 63 # application_type = "pce"63 # screening_type = "pce" 64 64 # elif traverse_subpath and traverse_subpath[0] == "pde": 65 65 # layout = "application_pde" 66 # application_type = "pde"66 # screening_type = "pde" 67 67 # elif traverse_subpath and traverse_subpath[0] == "cest": 68 68 # layout = "application_cest" 69 # application_type = "cest"69 # screening_type = "cest" 70 70 # else: 71 71 # return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 72 application_types = ('prence','pume','pce','pde','cest')72 screening_types = ('prence','pume','pce','pde','cest') 73 73 headings = {} 74 74 headings['pume'] = 'Apply for Post UME Screening Test (2007/2008)! ' … … 78 78 headings['cest'] = 'Apply for Common Entrance Screening Test (2007/2008)! ' 79 79 info = {} 80 if traverse_subpath and traverse_subpath[0] in application_types:81 application_type = info['application_type'] = traverse_subpath[0]82 info['heading'] = headings[ application_type]83 layout = "application_%s" % application_type84 without_reg_no = application_type in ('prence',)85 80 if traverse_subpath and traverse_subpath[0] in screening_types: 81 screening_type = info['screening_type'] = traverse_subpath[0] 82 info['heading'] = headings[screening_type] 83 layout = "application_%s" % screening_type 84 without_reg_no = screening_type in ('prence',) 85 86 86 else: 87 87 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) … … 160 160 data[field] = dm.get(field) 161 161 data['reg_no'] = reg_no 162 data['screening_type'] = application_type162 data['screening_type'] = screening_type 163 163 if apply_admission: 164 164 if submitted: -
WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt
r2323 r2324 22 22 <form action="" id="editForm" method="post" 23 23 enctype="multipart/form-data" class="workflow" 24 tal:attributes="action string:${context/absolute_url}/apply_admission/${info/ application_type}"24 tal:attributes="action string:${context/absolute_url}/apply_admission/${info/screening_type}" 25 25 > 26 <input type="hidden" name=" application_type"27 tal:attributes="value info/ application_type|nothing"28 tal:condition="info/ application_type|nothing"/>26 <input type="hidden" name="screening_type" 27 tal:attributes="value info/screening_type|nothing" 28 tal:condition="info/screening_type|nothing"/> 29 29 <input type="hidden" name="reg_no" 30 30 tal:attributes="value ds/reg_no|nothing" … … 65 65 <p>Instructions :</p> 66 66 <ul> 67 <li>Enter your <span tal:condition="python:not info[' application_type']=='prence'">JAMB Registration Number and the</span> Application PIN.</li>67 <li>Enter your <span tal:condition="python:not info['screening_type']=='prence'">JAMB Registration Number and the</span> Application PIN.</li> 68 68 <li>Fill the form and upload your Passport Photograph with red background in jpg format.</li> 69 69 <li>Save and preview picture.
Note: See TracChangeset for help on using the changeset viewer.