Changeset 4035


Ignore:
Timestamp:
31 Mar 2009, 21:18:43 (16 years ago)
Author:
Henrik Bettermann
Message:

signature included, academic report slip fixed, average with 2 decimals

Location:
WAeUP_SRP/trunk/skins/waeup_ois
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_ois/academic_report_slip.pt

    r4028 r4035  
    2121                                                 layout_mode='view_info',       
    2222                                                 layout_id='student_application')"       />
     23
     24       
     25        <span tal:condition="python:info[sem[2]]" tal:omit-tag="">
     26       
    2327        <table>
    2428            <tr>
     
    2933            </tr>
    3034        </table>
    31         <br />        
     35        <br />   <br />                
    3236       
    33         <span tal:condition="python:info[sem[2]]" tal:omit-tag="">
    3437            <table class="contentListing" id="folder_content" width="100%">
    3538                    <tr tal:condition="python:info[sem[1]]">
     
    6265            <table width=100%>
    6366                <tr >
    64                     <td width=40%>&nbsp;</td> 
    65                     <td width=30%>Date: 12/12/2008</td>
    66                     <td width=30%>Ms J.C. Butler</td>
     67                    <td width=50%>&nbsp;</td> 
     68                    <td width=20%>Date: 12/12/2008</td>
     69                    <td width=30% align='center'>
     70                    <img tal:attributes="src string:${static_base_url}butler.jpg"  alt="Signature"/>
     71                    <br />Ms J.C. Butler
     72                    <br />Principal</td>
    6773                </tr>           
    68                 <tr >
    69                     <td width=40%>&nbsp;</td>
    70                     <td width=30%></td>
    71                     <td width=30%>Principal</td>
    72                 </tr>
    7374            </table>
    7475        </span>
     
    7778        <span tal:condition="python:not info[sem[2]]" tal:omit-tag="">     
    7879       
     80        <br />     
    7981        <font color=red>Report not yet complete</font>
    8082         
  • WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py

    r3902 r4035  
    109109    score_calc_average_1 /= len(normal1)   
    110110info['complete1'] = complete1     
    111 info['score_calc_average_1'] = score_calc_average_1 
     111info['score_calc_average_1'] = '%.2f' % score_calc_average_1 
    112112
    113113complete2 = 0
    114114score_calc_average_2 = 0
    115 for r in normal1:
     115for r in normal2:
    116116    if r['grade'] and r['atl']:
    117117        score_calc_average_2 += r['score_calc']
     
    124124    score_calc_average_2 /= len(normal2)
    125125info['complete2'] = complete2
    126 info['score_calc_average_2'] = score_calc_average_2 
     126info['score_calc_average_2'] = '%.2f' % score_calc_average_2 
    127127
    128128complete3 = 0
    129129score_calc_average_3 = 0
    130 for r in normal1:
     130for r in normal3:
    131131    if r['grade'] and r['atl']:
    132132        complete3 += 1
     
    139139    score_calc_average_3 /= len(normal3)   
    140140info['complete3'] = complete3
    141 info['score_calc_average_3'] = score_calc_average_3 
     141info['score_calc_average_3'] =  '%.2f' % score_calc_average_3 
    142142
    143143
Note: See TracChangeset for help on using the changeset viewer.