Index: WAeUP_SRP/trunk/skins/waeup_student/acknowledge_print.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/acknowledge_print.pt	(revision 476)
+++ 	(revision )
@@ -1,27 +1,0 @@
-<html>
-    <tal:block tal:condition="python:context.portal_type == 'Student'" tal:omit-tag="">  
-      <tal:block tal:define="
-                          appl python:here.application;
-                          appl_proxy python:appl.getContent();
-                          clear python:here.clearance;
-                          clear_proxy python:clear.getContent();
-                          pers python:here.personal;
-                          pers_proxy python:pers.getContent();"
-                          >
-
-      <h2>Acknowledgement Slip for <span tal:content="pers_proxy/firstname" /> <span tal:content="pers_proxy/lastname" /></h2>      
-  
-   
-      <tal:block  tal:content="structure python:appl_proxy.render(cluster='appl_slip')" />
-      <tal:block  tal:content="structure python:clear_proxy.render(cluster='appl_slip')" /> 
-      <tal:block  tal:content="structure python:pers_proxy.render(cluster='appl_slip')" />
-
-
-      </tal:block>  
-    </tal:block>
-    <tal:block condition="python:context.portal_type != 'Student'">
-    
-      This is not a student object!
-    
-    </tal:block>  
-</html>
Index: WAeUP_SRP/trunk/skins/waeup_student/acknowledge_slip.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/acknowledge_slip.pt	(revision 476)
+++ 	(revision )
@@ -1,50 +1,0 @@
-<html metal:use-macro="here/content_lib_master/macros/master">
-  <metal:block fill-slot="head_slot">
-  </metal:block>
-
-  <metal:block fill-slot="css_slot">
-    <link rel="Stylesheet" type="text/css" href=""
-      tal:attributes="href string:${base_url}document.css" />
-  </metal:block>
-  <metal:block fill-slot="header">
-  </metal:block>
-
-  <metal:block fill-slot="main"
-               tal:define="roles member/getRoles;
-               frontend python:'Student' in roles or isAnon;
-               folder here/getContent;"                              
-               >
-
-    <tal:block tal:condition="python:context.portal_type == 'Student'" tal:omit-tag="">  
-      <tal:block tal:define="
-                          appl python:here.application;
-                          appl_proxy python:appl.getContent();
-                          clear python:here.clearance;
-                          clear_proxy python:clear.getContent();
-                          pers python:here.personal;
-                          pers_proxy python:pers.getContent();"
-                          >
-
-      <h2>Acknowledgement Slip for <span tal:content="pers_proxy/firstname" /> <span tal:content="pers_proxy/lastname" /></h2>      
-  
-   
-      <tal:block tal:content="structure python:appl_proxy.render(cluster='appl_slip')" />
-      <tal:block tal:content="structure python:clear_proxy.render(cluster='appl_slip')" /> 
-      <tal:block tal:content="structure python:pers_proxy.render(cluster='appl_slip')" />
-
-
-      </tal:block>  
-    </tal:block>
-    <tal:block condition="python:context.portal_type != 'Student'">
-    
-      This is not a student object!
-    
-    </tal:block>  
-  
-  </metal:block>
-
-
-
-  <metal:block fill-slot="sub">
-  </metal:block>
-</html>
Index: WAeUP_SRP/trunk/skins/waeup_student/application.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/application.py	(revision 476)
+++ 	(revision )
@@ -1,61 +1,0 @@
-##parameters=REQUEST
-# $Id: application.py 173 2005-11-15 16:28:29Z joachim $
-"""
-process the Application Form
-return html renderer + psm
-"""
-import DateTime
-current = DateTime.DateTime()
-
-type_name = 'StudentApplication'
-
-ti = context.portal_types[type_name]
-
-REQUEST.set('type_name',type_name)
-
-validate = REQUEST.has_key("cpsdocument_edit_button")
-
-
-lt = context.portal_layouts
-pr = context.portal_registration
-
-res,psm,ds = lt.renderLayout(layout_id= 'student_check_pin',
-                      schema_id= 'student_application',
-                      context=context,
-                      mapping=validate and REQUEST,
-                      ob={},
-                      layout_mode='create',
-                      formaction = "application",
-                      submit = "check",
-                      )
-if psm == 'invalid':
-    return context.application_pin_form(rendered = res,
-                                 psm = "Please correct your input",
-                                 ds = ds,
-                                 )
-elif psm == '':
-    return context.application_pin_form(rendered = res,
-                                 psm = None,
-                                 ds = ds,
-                                 )
-elif psm == 'valid':
-    jamb_id = ds.get('jamb_id')
-    catalog = context.portal_catalog
-    search = catalog({'meta_type': 'StudentApplication',
-                     'jamb_reg_no': jamb_id
-                     })
-
-    if len(search) < 1:
-        psm = "No JAMB record %s" % (jamb_id)
-        return context.application_pin_form(rendered = res,
-                                 psm = psm,
-                                 ds = ds,
-                                 )
-application = search[0].getObject()
-student = application.aq_parent
-student.invokeFactory('StudentClearance','clearance')
-student.invokeFactory('StudentPersonal','personal')
-# now display the passport form with jamb-data readonly
-return student.application_form()
-
-
Index: WAeUP_SRP/trunk/skins/waeup_student/application_form.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/application_form.pt	(revision 476)
+++ WAeUP_SRP/trunk/skins/waeup_student/application_form.pt	(revision 477)
@@ -19,18 +19,14 @@
       <tal:block tal:define="
                           appl python:here.application;
-                          appl_proxy python:appl.getContent();
-                          clear python:here.clearance;
-                          clear_proxy python:clear.getContent();
-                          pers python:here.personal;
-                          pers_proxy python:pers.getContent();"
+                          appl_proxy python:appl.getContent();"
                           >
 
-      <h2>Acknowledgement Slip for <span tal:content="pers_proxy/firstname" /> <span tal:content="pers_proxy/lastname" /></h2>      
-  
+      <h2>Application Form for <span tal:content="appl_proxy/jamb_firstname" /> <span tal:content="appl_proxy/jamb_lastname" /></h2>      
    
-      <tal:block tal:content="structure python:appl_proxy.render(cluster='appl_slip')" />
-      <tal:block tal:content="structure python:clear_proxy.render(cluster='appl_slip')" /> 
-      <tal:block tal:content="structure python:pers_proxy.render(cluster='appl_slip')" />
-
+      <tal:block tal:content="structure python:appl_proxy.renderEdit(request=request, layout_id='student_application_fe', proxy=appl_proxy, layout_mode='edit')" />
+      
+      <tal:block tal:content="structure python:appl_proxy.renderEdit(layout_id='student_application_fe', layout_mode='view')" />
+            
+      <tal:block tal:content="structure python:appl_proxy.render(layout_id='student_application_fe')" />
 
       </tal:block>  
Index: WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py	(revision 477)
+++ WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py	(revision 477)
@@ -0,0 +1,61 @@
+##parameters=REQUEST
+# $Id: apply_admission.py 173 2005-11-15 16:28:29Z joachim $
+"""
+process the Application Form
+return html renderer + psm
+"""
+import DateTime
+current = DateTime.DateTime()
+
+type_name = 'StudentApplication'
+
+ti = context.portal_types[type_name]
+
+REQUEST.set('type_name',type_name)
+
+validate = REQUEST.has_key("cpsdocument_edit_button")
+
+
+lt = context.portal_layouts
+pr = context.portal_registration
+
+res,psm,ds = lt.renderLayout(layout_id= 'student_check_pin',
+                      schema_id= 'student_application',
+                      context=context,
+                      mapping=validate and REQUEST,
+                      ob={},
+                      layout_mode='create',
+                      formaction = "apply_admission",
+                      submit = "check",
+                      )
+if psm == 'invalid':
+    return context.application_pin_form(rendered = res,
+                                 psm = "Please correct your input",
+                                 ds = ds,
+                                 )
+elif psm == '':
+    return context.application_pin_form(rendered = res,
+                                 psm = None,
+                                 ds = ds,
+                                 )
+elif psm == 'valid':
+    jamb_id = ds.get('jamb_id')
+    catalog = context.portal_catalog
+    search = catalog({'meta_type': 'StudentApplication',
+                     'jamb_reg_no': jamb_id
+                     })
+
+    if len(search) < 1:
+        psm = "No JAMB record %s" % (jamb_id)
+        return context.application_pin_form(rendered = res,
+                                 psm = psm,
+                                 ds = ds,
+                                 )
+application = search[0].getObject()
+student = application.aq_parent
+student.invokeFactory('StudentClearance','clearance')
+student.invokeFactory('StudentPersonal','personal')
+# now display the passport form with jamb-data readonly
+return student.application_form()
+
+
