Index: WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt	(revision 536)
+++ WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt	(revision 537)
@@ -1,58 +1,17 @@
-<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:block tal:condition="python:context.portal_type == 'StudentApplication'" tal:omit-tag="">
-    <h3>Post UME Acknowledegement Slip</h3>
-        <br />
-        
-      <tal:block tal:define="application_data python:context.getContent();">
-      
-      
-      <table cellpadding="10em" cellspacing="">
-      <tr>
-      <td valign="top">
-        <img tal:condition="application_data/passport|nothing" 
-             tal:attributes="src string:${context/absolute_url}/passport"/>
-              <span tal:condition="nothing" tal:replace="structure application_data/passport" />
-      </td>
-
-      <td>
-      
-      <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
-      <tr><td>Access Code: </td><td><span tal:content="application_data/app_ac_pin" /></td></tr>
-      <tr><td>Application Date: </td><td><span tal:content="python:application_data.app_ac_date.aCommonZ()" /></td></tr>
-      <tr><td>JAMB Registration Number: </td><td><span tal:content="application_data/jamb_reg_no" /></td></tr>
-      <tr><td>Student's Name: </td><td><span tal:content="application_data/jamb_firstname" /> <span tal:content="application_data/jamb_middlename" /> <span tal:content="application_data/jamb_lastname" /></td></tr>
-      <tr><td>Sex: </td><td><span tal:content="application_data/jamb_sex" /></td></tr>
-      <tr><td>Mode of Entry: </td><td><span tal:content="application_data/entry_mode" /></td></tr>
-      <tr><td>Course of Study: </td><td><span tal:content="application_data/jamb_first_cos" />, <span tal:content="application_data/jamb_second_cos" /></td></tr>
-      <tr><td>State of Origin: </td><td><span tal:content="application_data/jamb_state" /> / <span tal:content="application_data/jamb_lga" /></td></tr>
-      <tr><td>Post UME Examination Date: </td><td></td></tr>
-      </table>
-
-      </td>
-      </tr>
-      </table>
-      
-      </tal:block>
-    </tal:block>
-    <tal:block condition="python:context.portal_type != 'StudentApplication'">
-      Please do not manipulate the URL! This is not an application object.
-    </tal:block>  
-  
-  </metal:block>
-
-  <metal:block fill-slot="sub">
-  </metal:block>
-</html>
+<metal:html tal:define="info context/getStudentInfo">
+  <metal:body use-macro="here/main_template/macros/master">
+    <metal:main fill-slot="main">
+      <span tal:condition="not: info">
+        <metal:block use-macro="here/error_not_found/macros/not_found" />
+      </span>
+      <span tal:condition="info"
+            tal:define="review_state info/review_state">
+        <span tal:omit-tag=""
+              tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
+              layout_mode='view', 
+              layout_id='student_application')" 
+              />
+      </span>
+    </metal:main>
+  </metal:body>
+</metal:html>
Index: WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt	(revision 536)
+++ WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt	(revision 537)
@@ -13,6 +13,7 @@
   cpsmcat nocall:here/translation_service;
   apply request/apply_button|nothing;
+  widgets python:context.getRenderedWidgets(layout);
   ">
-
+  <span tal:condition="python: 0" tal:replace="structure widgets" />
   <form action="" id="editForm" method="post" 
         enctype="multipart/form-data" class="workflow"
@@ -20,10 +21,9 @@
         
         >
-  <table width="" cellpadding="2" cellspacing="0" summary="Form layout"
+  <table class="layoutDefault" summary="Form layout"
          tal:condition="layout/rows">
-    <tr tal:repeat="row layout/rows" valign="top" >
-      <span tal:repeat="cell row"
-          tal:attributes="colspan cell/ncols">
-        <tal:block define="widget cell/widget;
+    <span tal:repeat="row python: layout['rows']" valign="top" >
+      <span tal:repeat="cell row">
+        <tr tal:define="widget cell/widget;
               wid widget/getWidgetId;
               err python:ds.getError(wid);
@@ -33,4 +33,5 @@
               widget_css_class cell/widget_css_class|nothing;
               css_class python:test(err, 'row error','row')"
+              tal:condition="python: wid != 'passport'"
               >
           <div tal:attributes="class widget_css_class;
@@ -67,11 +68,56 @@
             </td>
           </div>
-        </tal:block>
-       </span>
-      </tr>
-    </table>
+        </tr>
+      </span>
+    </span>
+    <tr tal:condition="widgets/passport|nothing" tal:define="cell widgets/passport|nothing;">
+      <tal:block tal:define="widget cell/widget;
+      wid widget/getWidgetId;
+      err python:ds.getError(wid);
+      err_mapping python:ds.getErrorMapping(wid);
+      is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
+      tooltip_id python:wid + '_help';
+      widget_css_class widget/widget_css_class|nothing;
+      css_class python:test(err, 'row error','row')"
+      >
+        <div tal:attributes="class widget_css_class;
+        id python:widget.getHtmlWidgetId()+'_widget';"
+        >
+          <td>
+            <div class="label" tal:condition="widget/label_edit"
+                 tal:attributes="class python:test(is_required, 'label required','label')">
+              <label tal:content="widget/label_edit"
+                     tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
+            </div>
+            <button type="button" class="tooltipControl"
+                    tal:condition="widget/help"
+                    tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
+          </td>
+          <td>
+            <span class="field">
+              <div tal:replace="structure cell/widget_rendered"/>
+            </span>
+            <div class="tooltipArea" style="visibility: hidden;"
+                 tal:condition="widget/help"
+                 tal:attributes="id tooltip_id;
+                 onclick python:'showElement(false, \'%s\')' % tooltip_id;"
+                 >
+              <tal:block tal:content="widget/help">This is the help for this field
+              </tal:block>
+            </div>
+            <tal:block condition="err">
+              <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
+                <br /><em style="color: red"
+                          tal:content="msg">err</em>
+              </tal:block>
+            </tal:block>
+          </td>
+        </div>
+      </tal:block>
+    </tr>
+  </table>
   <br />
   <input type="submit" class="standalone" name="cpsdocument_edit_button"
-         value="button_change" 
+         value="Save" 
          id="cpsdocument_edit_button"
          tal:condition="not:creation" />
Index: WAeUP_SRP/trunk/skins/waeup_student/layout_application_print.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/layout_application_print.pt	(revision 537)
+++ WAeUP_SRP/trunk/skins/waeup_student/layout_application_print.pt	(revision 537)
@@ -0,0 +1,78 @@
+<!-- a layout_lib macro -->
+<!-- $Id: layout_lib_default_view.pt 34052 2006-03-06 14:59:24Z atchertchian $ -->
+<metal:block tal:define="layout options/layout;
+             widgets python:context.getRenderedWidgets(layout);"
+             >
+  <h3>Post UME Acknowledegement Slip</h3>
+  <br />
+  <table cellpadding="10em" cellspacing="">
+    <tr>
+      <td tal:define="cell widgets/passport">
+        <span tal:replace="structure cell/widget_rendered" />
+      </td>
+      <td>
+        <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
+          <tr tal:define="cell widgets/app_ac_pin">
+            <td>
+              <span tal:replace="cell/widget/label" />: 
+            </td>
+            <td><span tal:replace="structure cell/widget_rendered" />
+            </td>
+          </tr>
+          <tr tal:define="cell widgets/app_ac_date">
+            <td>
+              <span tal:replace="cell/widget/label" />: 
+            </td>
+            <td><span tal:replace="structure cell/widget_rendered" />
+            </td>
+          </tr>
+          <tr tal:define="cell widgets/jamb_reg_no">
+            <td>
+              <span tal:replace="cell/widget/label" />: 
+            </td>
+            <td><span tal:replace="structure cell/widget_rendered" />
+            </td>
+          </tr>
+          <tr>
+            <td>
+              Student's Name: 
+            </td>
+            <td>
+              <span tal:replace="structure widgets/jamb_firstname/widget_rendered" />
+              <span tal:replace="structure widgets/jamb_lastname/widget_rendered" />
+            </td>
+          </tr>
+          <tr tal:define="cell widgets/jamb_sex">
+            <td>
+              <span tal:replace="cell/widget/label" />: 
+            </td>
+            <td><span tal:replace="structure cell/widget_rendered" />
+            </td>
+          </tr>
+          <tr tal:define="cell widgets/entry_mode">
+            <td>
+              <span tal:replace="cell/widget/label" />: 
+            </td>
+            <td><span tal:replace="structure cell/widget_rendered" />
+            </td>
+          </tr>
+          <tr>
+            <td>Course of Study: </td>
+            <td>
+              <span tal:replace="structure widgets/jamb_first_cos/widget_rendered" /> |
+              <span tal:replace="structure widgets/jamb_second_cos/widget_rendered" />
+            </td>
+          </tr>
+          <tr><td>State of Origin: </td>
+            <td>
+              <span tal:replace="structure widgets/jamb_state/widget_rendered" /> /
+              <span tal:replace="structure widgets/jamb_lga/widget_rendered" />
+            </td>
+          </tr>
+          <tr><td>Post UME Examination Date: </td><td></td></tr>
+        </table>
+      </td>
+    </tr>
+  </table>
+</metal:block>
+
Index: WAeUP_SRP/trunk/skins/waeup_student/layout_application_view.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/layout_application_view.pt	(revision 536)
+++ WAeUP_SRP/trunk/skins/waeup_student/layout_application_view.pt	(revision 537)
@@ -13,10 +13,9 @@
                                  'jamb_second_cos',)"
                                  >
-  <span tal:condition="nothing" tal:replace="structure widgets" />
   <table cellpadding="2" cellspacing="2" summary="layout">
     <tr tal:repeat="field fields">
       <tal:block tal:define="cell python: widgets[field]">
         <tal:block define="widget cell/widget">
-          <div tal:attributes="class cell/widget_css_class|nothing;
+          <div tal:attributes="class cell/widget_css_class|string:label;
             id python:widget.getHtmlWidgetId()+'_widget';">
             <td >
@@ -40,10 +39,10 @@
             <td valign="top">
             <tal:block condition="widget/label">
-              <span class="dlabel"
+              <span class="label"
                     tal:content="widget/label">label</span>:
             </tal:block>
             </td>
             <td>
-              <img src="img" tal:attributes="src string:${context/aq_parent/absolute_url}/passport" />
+              <img src="img" tal:replace="structure cell/widget_rendered">
             </td>
           </div>
Index: WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/student_edit.py	(revision 536)
+++ WAeUP_SRP/trunk/skins/waeup_student/student_edit.py	(revision 537)
@@ -96,4 +96,5 @@
         args = {}
     else:
+        info['app'].content_status_modify(workflow_action="close")
         psm = 'psm_content_error'
         args = getFormUidUrlArg(REQUEST)
