Changeset 1174 for WAeUP_SRP


Ignore:
Timestamp:
2 Jan 2007, 11:03:16 (18 years ago)
Author:
Henrik Bettermann
Message:

sessional result view and slip added
names imported into application object

Location:
WAeUP_SRP/trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1173 r1174  
    1818#
    1919# $Id$
    20 """The WAeUPTool.
    21 
    22 $Id$
     20"""The WAeUP Tool Box.
    2321"""
    2422
     
    5553                     + SimpleItem.manage_options
    5654                     )
    57                      
    58                      
     55
     56
    5957
    6058    def generateStudentId(self,letter): ###(
     
    147145
    148146        #student should not be allowed to perform this transition
    149         #wftool = self.portal_workflow   
    150         #wftool.doActionFor(student,'return')     
     147        #wftool = self.portal_workflow
     148        #wftool.doActionFor(student,'return')
    151149
    152150        certcode_org = student.Coursemajorcode
     
    186184        else:
    187185            lga = "None"
    188         dc['lga'] = lga
     186        da['jamb_lga'] = dc['lga'] = lga
    189187        da['app_email'] = dp['email'] = email
    190188        da['app_mobile'] = dp['phone'] = phone_nr
    191         dp['firstname'] = student.Firstname
    192         dp['middlename'] = student.Middlename
    193         dp['lastname'] = student.Lastname
     189        da['jamb_firstname'] = dp['firstname'] = student.Firstname
     190        da['jamb_middlename'] = dp['middlename'] = student.Middlename
     191        da['jamb_lastname'] = dp['lastname'] = student.Lastname
     192        da['jamb_sex'] = student.Sex
    194193        dp['sex'] = student.Sex == 'F'
    195194        dp['perm_address'] = student.Permanent_Address
  • WAeUP_SRP/trunk/profiles/default/themes.xml

    r1115 r1174  
    1212  <element key="application_slip" value="WAeUP_Student+Slippage"/>
    1313  <element key="accommodation_slip" value="WAeUP_Student+Slippage"/>
     14  <element key="session_results_slip" value="WAeUP_Student+Slippage"/>
    1415  <element key="pume_slip" value="WAeUP_Student+Slippage"/>
    1516  <element key="entry_results_anon_slip" value="WAeUP_Student+Slippage"/>
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1171 r1174  
    9898            redirect_url = "%s/clearance_edit_form" % student.absolute_url()
    9999        if s_review_state == "returning":
    100             redirect_url = "%s/student_view" % student.absolute_url()
     100            redirect_url = "%s/session_results_view" % student.absolute_url()
    101101        else:
    102102            redirect_url = "%s/student_index" % student.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt

    r1172 r1174  
    120120  <span tal:condition="python:info['review_state']=='returning'">
    121121  <tr><td class="active">
    122     <a href="" tal:attributes="href string:${info/url}/personal_edit_form">
     122    <a href="" tal:attributes="href string:${info/url}/session_results_view">
    123123    Returning
    124124    </a>
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt

    r1169 r1174  
    44  <metal:body use-macro="here/main_template/macros/master">
    55    <metal:main fill-slot="main">
    6       <div tal:condition="nothing" style="text-align: right">
    7         <a href="" target="slip" tal:attributes="href string:session_results_anon_slip?nr=${student/matric_no}"
    8            onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
    9           <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    10           Session Result Slip
    11         </a>
    12       </div>
    136      <h3>Session Results of <span tal:content="student/Firstname" />
    147        <span tal:content="student/Middlename" />
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt

    r1171 r1174  
    1 <metal:html>
     1<metal:html tal:define="info context/getSessionResults">
    22  <metal:body use-macro="here/main_template/macros/master">
    33    <metal:main fill-slot="main">
    4       <div tal:condition="nothing" style="text-align: right">
    5         <a href="" target="slip" tal:attributes="href string:session_results_anon_slip?nr=${student/matric_no}"
     4      <div style="text-align: right">
     5        <a href="" target="slip" tal:attributes="href string:session_results_slip"
    66           onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
    77          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    8           Session Result Slip
     8          Sessional Result Slip
    99        </a>
    1010      </div>
    11       <h3>Session Results of <span tal:content="student/Firstname" />
    12         <span tal:content="student/Middlename" />
    13         <span tal:content="student/Lastname" />
     11      <h3>Session Results of <span tal:content="info/student/Firstname" />
     12        <span tal:content="info/student/Middlename" />
     13        <span tal:content="info/student/Lastname" />
    1414      </h3>
    1515      <br />
    1616      <table>
    1717        <tr>
    18           <td width="180px"><span class="dlabel">Student ID</span>:
    19           </td>
     18          <th width="180px">Student ID:</th>
    2019          <td>
    21             <span tal:replace="python:here.aq_parent.aq_parent.id" />
     20            <span tal:replace="info/s_id" />
    2221          </td>     
    2322        </tr>     
    2423     
    2524        <tr>
    26           <th width="150px">Matriculation Number:</th><td tal:content="student/matric_no" />                     
     25          <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" />                     
    2726        </tr>
    2827        <tr>
    29           <th>Sex:</th><td tal:content="student/Sex" />                     
     28          <th>Sex:</th><td tal:content="info/student/Sex" />                     
    3029        </tr>
    3130        <tr>
    32           <th>Course of Study:</th><td tal:content="student/Coursemajor" />                     
     31          <th>Course of Study:</th><td tal:content="info/student/Coursemajor" />                     
    3332        </tr>
    3433        <tr>
    35           <th>Level:</th><td tal:content="student/Level" />                     
     34          <th>Level:</th><td tal:content="info/student/Level" />                     
    3635        </tr>
    3736      </table>
     
    3938       <table>
    4039          <tr>
    41             <th width="150px">Verdict:</th><td tal:content="python:results[0][0]['Verdict']" />
     40            <th width="180px">Verdict:</th><td tal:content="python:info['results'][0][0]['Verdict']" />
    4241          </tr>
    4342          <tr> 
    44             <th>Session:</th><td tal:content="python:results[0][0]['Session']" />
     43            <th>Session:</th><td tal:content="python:info['results'][0][0]['Session']" />
    4544          </tr>       
    4645       </table>
     
    4948                     
    5049       <table>
    51          <span tal:repeat="semester results">
     50         <span tal:repeat="semester info/results">
    5251            <span tal:repeat="result semester">
    5352             <tr tal:condition="repeat/result/start">
Note: See TracChangeset for help on using the changeset viewer.