Changeset 476 for WAeUP_SRP/trunk
- Timestamp:
- 3 Sep 2006, 06:57:21 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/application.py
r472 r476 30 30 ) 31 31 if psm == 'invalid': 32 return context.application_ form(rendered = res,32 return context.application_pin_form(rendered = res, 33 33 psm = "Please correct your input", 34 34 ds = ds, 35 35 ) 36 36 elif psm == '': 37 return context.application_ form(rendered = res,37 return context.application_pin_form(rendered = res, 38 38 psm = None, 39 39 ds = ds, … … 48 48 if len(search) < 1: 49 49 psm = "No JAMB record %s" % (jamb_id) 50 return context.application_ form(rendered = res,50 return context.application_pin_form(rendered = res, 51 51 psm = psm, 52 52 ds = ds, … … 57 57 student.invokeFactory('StudentPersonal','personal') 58 58 # now display the passport form with jamb-data readonly 59 return student.a cknowledge_slip()59 return student.application_form() 60 60 61 61 -
WAeUP_SRP/trunk/skins/waeup_student/application_form.pt
r472 r476 1 <tal:block define="rendered_main options/rendered; 2 portal_status_message options/psm; 3 data_storage options/ds; 4 jamb options/jamb/getContent|nothing; 5 edition python:1;" 6 > 7 <metal:block define-macro="edit_form"> 8 <metal:block use-macro="here/content_lib_master/macros/master"> 9 <metal:block fill-slot="header" 10 tal:define="creation creation|nothing; 11 edition edition|nothing; 12 metadata metadata|nothing" 13 > 14 </metal:block> 15 <metal:block fill-slot="main"> 16 <h1>Apply for the Post University Matriculation Examination! </h1> 17 <div tal:replace="structure rendered_main" /> 18 <p>Instructions :</p> 19 <ul> 20 <li>Buy an Application Scratch Card.</li> 21 <li>Enter your JAMB registration number and the Application PIN above.</li> 22 <li>Upload your passport picture.</li> 23 <li>Print the Application Acknowledgement Slip.</li> 24 </ul> 25 </metal:block> 26 <metal:block fill-slot="sub"> 27 </metal:block> 28 </metal:block> 1 <html metal:use-macro="here/content_lib_master/macros/master"> 2 <metal:block fill-slot="head_slot"> 29 3 </metal:block> 30 </tal:block> 4 5 <metal:block fill-slot="css_slot"> 6 <link rel="Stylesheet" type="text/css" href="" 7 tal:attributes="href string:${base_url}document.css" /> 8 </metal:block> 9 <metal:block fill-slot="header"> 10 </metal:block> 11 12 <metal:block fill-slot="main" 13 tal:define="roles member/getRoles; 14 frontend python:'Student' in roles or isAnon; 15 folder here/getContent;" 16 > 17 18 <tal:block tal:condition="python:context.portal_type == 'Student'" tal:omit-tag=""> 19 <tal:block tal:define=" 20 appl python:here.application; 21 appl_proxy python:appl.getContent(); 22 clear python:here.clearance; 23 clear_proxy python:clear.getContent(); 24 pers python:here.personal; 25 pers_proxy python:pers.getContent();" 26 > 27 28 <h2>Acknowledgement Slip for <span tal:content="pers_proxy/firstname" /> <span tal:content="pers_proxy/lastname" /></h2> 29 30 31 <tal:block tal:content="structure python:appl_proxy.render(cluster='appl_slip')" /> 32 <tal:block tal:content="structure python:clear_proxy.render(cluster='appl_slip')" /> 33 <tal:block tal:content="structure python:pers_proxy.render(cluster='appl_slip')" /> 34 35 36 </tal:block> 37 </tal:block> 38 <tal:block condition="python:context.portal_type != 'Student'"> 39 40 This is not a student object! 41 42 </tal:block> 43 44 </metal:block> 45 46 47 48 <metal:block fill-slot="sub"> 49 </metal:block> 50 </html>
Note: See TracChangeset for help on using the changeset viewer.