Changeset 483 for WAeUP_SRP/trunk/skins
- Timestamp:
- 5 Sep 2006, 20:49:31 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/application_form.pt
r479 r483 12 12 <metal:block fill-slot="main"> 13 13 <tal:block 14 tal:define="rendered python:context.getContent().renderEdit( 14 tal:define="rendered_pin python:context.getContent().renderEdit( 15 layout_id='pin', 16 layout_mode='edit', 17 ); 18 rendered_main python:context.getContent().renderEdit( 15 19 layout_id='student_application_fe', 16 20 layout_mode='edit', 17 21 );"> 18 <tal:block tal:content="structure rendered" /> 22 <tal:block tal:content="structure rendered_pin" /> 23 <tal:block tal:content="structure rendered_main" /> 19 24 </tal:block> 20 25 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_student/application_pin_form.pt
r478 r483 1 <tal:block define="rendered_main options/rendered; 1 <tal:block define="rendered_pin options/renderes_pin 2 rendered_main options/rendered_main; 2 3 portal_status_message options/psm; 3 4 data_storage options/ds; … … 15 16 <metal:block fill-slot="main"> 16 17 <h1>Apply for the Post University Matriculation Examination! </h1> 18 <div tal:replace="structure rendered_pin" /> 17 19 <div tal:replace="structure rendered_main" /> 18 20 <p>Instructions :</p> 19 21 <ul> 20 <li>Buy an Appli iication Scratch Card.</li>22 <li>Buy an Application Scratch Card.</li> 21 23 <li>Enter your JAMB registration number and the Application PIN above.</li> 22 24 <li>Upload your passport picture.</li> -
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r482 r483 40 40 if context.portal_workflow.getInfoFor(student,'review_state',None) == "application_pin_entered": 41 41 student.content_status_modify(workflow_action="apply_for_admission") 42 is_valid, ds = doc.validate(request=REQUEST, 43 proxy=context, 42 is_valid, ds = doc.validate(request=REQUEST, 43 proxy=context, 44 44 layout_id = "student_application_fe", 45 45 layout_mode = 'edit', 46 46 use_session=True) 47 47 48 48 action = '/application_form' 49 49 50 50 if is_valid: 51 51 comments = REQUEST.get('comments') … … 53 53 if cpsdocument_edit_and_view_button is not None: 54 54 action = '' 55 psm = ' passport image uploaded'55 psm = 'You successfully uploaded your passport image.' 56 56 args = {} 57 57 action = "/view" … … 61 61 else: 62 62 args = {} 63 psm = " Application applied waiting for results"63 psm = "You successfully applied for admission." 64 64 action = "/view" 65 65 else: 66 66 is_valid, ds = doc.validate(request=REQUEST, proxy=context, cluster=cluster, 67 67 use_session=True) 68 68 69 69 if action is None: 70 70 ti = doc.getTypeInfo() 71 71 action = ti.queryMethodID('edit', 'cpsdocument_edit_form') 72 72 action = '/' + action 73 73 74 74 if is_valid: 75 75 comments = REQUEST.get('comments') … … 82 82 psm = 'psm_content_error' 83 83 args = getFormUidUrlArg(REQUEST) 84 84 85 85 args['portal_status_message'] = psm 86 86 url = context.absolute_url() + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.