Changeset 1980 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
3 Jul 2007, 08:33:02 (17 years ago)
Author:
Henrik Bettermann
Message:

Anonymous User saw traceback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/external_study_level_view.pt

    r1737 r1980  
    1 <metal:html>
    2   <metal:body use-macro="here/slip_template/macros/master">
    3     <metal:block fill-slot="header"
    4                  tal:define="global info context/getStudyLevelInfo;
    5                  global is_so context/isSectionOfficer;
    6                  global is_ca info/is_ca;
    7                  global show_check_boxes info/show_check_boxes;
    8                              global is_student info/is_student;
    9                              global status_info info/status_info;
    10                              global review_state info/review_state;
    11                              global view_only info/view_only">
    12               <div style="text-align: right"
    13              tal:condition="python:review_state == 'courses_validated'">
    14         <a href="" target="slip" tal:attributes="href string:course_registration_slip"
    15             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')">
    16             <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    17             Course Registration Slip
    18         </a>
    19        
    20         </div>
     1<metal:body use-macro="here/slip_template/macros/master">
     2  <metal:main fill-slot="main"
     3          tal:define="info context/getStudyLevelInfo;">
     4             
     5    <span tal:condition="not: info">
     6      <span tal:content="here/illegal_view" />
     7    </span>
     8    <span tal:condition="info">
     9    <span tal:define= "is_so context/isSectionOfficer;
     10                       is_ca info/is_ca;
     11                       show_check_boxes info/show_check_boxes;
     12                       is_student info/is_student;
     13                       status_info info/status_info;
     14                       review_state info/review_state;
     15                       view_only info/view_only">       
     16
     17    <div style="text-align: right"
     18         tal:condition="python:review_state in ('courses_registered','courses_validated',)">
     19    <a href="" target="slip" tal:attributes="href string:course_registration_slip"
     20        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')">
     21        <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
     22        Course Registration Slip
     23    </a>
     24    </div>
     25
    2126
    2227      <h3>
     
    2732      </h3>
    2833
    29     </metal:block>
    30     <metal:main fill-slot="main" tal:condition="python:1">
    3134      <form action="." method="post" class="group">
    3235        <span tal:condition="info/carry_overs" tal:omit-tag="">
     
    4649            </td>
    4750            <td width="78%" tal:content="row/title"></td>
    48             <td align="center" width="10%" tal:content="row/code"></td>
    49             <td align="center" width="2%">S<span tal:content="row/semester" /></td>
    50             <td align="center" width="2%" tal:content="row/credits"></td>
    51             <td align="center" width="8%" tal:content="row/grade|string:"></td>
     51            <td width="10%" tal:content="row/code"></td>
     52            <td width="2%">S<span tal:content="row/semester" /></td>
     53            <td width="2%" tal:content="row/credits"></td>
     54            <td width="8%" tal:content="row/grade|string:"></td>
    5255          </tr>
    5356        </table>
     
    7376            </td>
    7477            <td width="78%" tal:content="row/title"></td>
    75             <td align="center" width="10%" tal:content="row/code"></td>
    76             <td align="center" width="2%">S<span tal:content="row/semester" /></td>
    77             <td align="center" width="2%" tal:content="row/credits"></td>
    78             <td align="center" width="8%" tal:content="row/coe|nothing"></td>
     78            <td width="10%" tal:content="row/code"></td>
     79            <td width="2%">S<span tal:content="row/semester" /></td>
     80            <td width="2%" tal:content="row/credits"></td>
     81            <td width="8%" tal:content="row/coe|nothing"></td>
    7982          </tr>
    8083          <tr>
     
    196199        </table>
    197200        </form>         
    198     </metal:main>
    199   </metal:body>
    200 </metal:html>
     201  </span>
     202  </span>         
     203  </metal:main>
     204</metal:body>
    201205 
Note: See TracChangeset for help on using the changeset viewer.