Ignore:
Timestamp:
8 Sep 2008, 19:35:03 (16 years ago)
Author:
Henrik Bettermann
Message:

first implementations for academic reports of secondary schools

call the URL: [path to level]/academic_report_view

Location:
WAeUP_SRP/base/skins/waeup_student
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/study_level_view.pt

    r3628 r3667  
    113113          <td align="center" width="2%" tal:content="row/credits"></td>
    114114          <td tal:condition="with_score" align="center" width="4%" tal:content="row/score"></td>
    115           <td tal:condition="with_cascore" align="center" width="4%" tal:content="row/cascore"></td>
     115          <td tal:condition="with_cascore" align="center" width="4%" tal:content="row/ca1"></td>
    116116          <td align="center" width="2%" tal:content="row/grade"></td>
    117117          <td align="center" width="2%" tal:content="row/weight"></td>
     
    135135      <table class="contentListing" width="100%" id="folder_content">
    136136       
    137         <span tal:repeat="sem python:('1','2')">       
     137        <span tal:repeat="sem python:(('1','First Semester Courses','normal1'),('2','Second Semester Courses','normal2'),('3','Level Courses','normal3'))">       
    138138                   
    139         <tr>
     139        <tr tal:condition="python:info[sem[2]]">
    140140        <th tal:attributes="colspan python: test(show_check_boxes,'2','1')"
    141             tal:content="python: test(sem == '1','First Semester', 'Second Semester')" />
     141            tal:content="python:sem[1]" />
    142142        <th align='center'></th>
    143143        <th align='center'>sm</th>
     
    151151           
    152152        </tr>               
    153         <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
     153        <tr tal:repeat="row python:info[sem[2]]"
     154           
    154155            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    155           <td align="left" valign="middle" style="width: 5%         ;"
     156          <td align="left" valign="middle" style="width: 5%;"
    156157             tal:condition="show_check_boxes">
    157158            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     
    167168          <td align="center" width="2%" tal:content="row/credits"></td>
    168169          <td tal:condition="with_score" align="center" width="4%" tal:content="row/score"></td>
    169           <td tal:condition="with_cascore" align="center" width="4%" tal:content="row/cascore"></td>
     170          <td tal:condition="with_cascore" align="center" width="4%" tal:content="row/ca1"></td>
    170171          <td align="center" width="2%" tal:content="row/grade"></td>
    171172          <td align="center" width="2%" tal:content="row/weight"></td>
     
    180181          </td>         
    181182        </tr>
    182 
     183        <tr><td>&nbsp;</td></tr>
    183184        </span>       
    184        
    185         <tr><th colspan="3" tal:condition="info/normal3"> Combined</th></tr>               
    186         <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
    187             tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    188           <td align="left" valign="middle" style="width: 5%;"
    189              tal:condition="show_check_boxes">
    190             <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    191                    tal:define="id row/id"
    192                    tal:attributes="value id;
    193                    id python:'cb_' + id;
    194                    checked python:id in info['choosen_ids'];"
    195                    />
    196           </td>
    197           <td width="58%" tal:content="row/title"></td>
    198           <td align="center" width="10%" tal:content="row/code"></td>
    199           <td align="center" width="2%"><span tal:content="row/semester" /></td>
    200           <td align="center" width="2%" tal:content="row/credits"></td>
    201           <td tal:condition="with_score" align="center" width="4%" tal:content="row/score"></td>
    202           <td tal:condition="with_cascore" align="center" width="4%" tal:content="row/cascore"></td>
    203           <td align="center" width="2%" tal:content="row/grade"></td>
    204           <td align="center" width="2%" tal:content="row/weight"></td>
    205           <td align="center" width="10%" tal:content="row/coe|nothing"></td>
    206          
    207           <td tal:condition="submission_allowed" width="5%" align="center">
    208           <a href="edit" tal:attributes="href string:course_edit/${row/code}"
    209           target="edit_course_result"
    210           onclick="javascript:window.open('','edit_course_result','width=600, height=350, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
    211           [edit]
    212           </a>
    213           </td>         
    214         </tr>       
    215185       
    216186      </table>
Note: See TracChangeset for help on using the changeset viewer.