Changeset 3457 for WAeUP_SRP/base


Ignore:
Timestamp:
21 Apr 2008, 11:44:54 (17 years ago)
Author:
joachim
Message:

avoid traceback if anonuymous fix #536 (in custom)

File:
1 edited

Legend:

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

    r3452 r3457  
    11<metal:body use-macro="here/main_template/macros/master">
    2     <metal:main fill-slot="main"
    3                 tal:define="info context/getClearanceInfo;
    4                         is_so info/is_sectionofficer;
    5                         is_student info/is_student;
    6                         ">
    7       <span tal:condition="not: info">
    8         <span tal:content="here/illegal_view" />
    9       </span>
    10       <span tal:condition="info">
    11            
    12         <div style="text-align: right">
     2  <metal:main fill-slot="main"
     3              tal:define="info context/getClearanceInfo">
     4    <span tal:condition="not: info">
     5      <span tal:content="here/illegal_view" />
     6    </span>
     7    <span tal:condition="info" tal:define="is_so info/is_sectionofficer|nothing;
     8    is_student info/is_student|nothing;"
     9    >
     10      <div style="text-align: right">
    1311        <a href="" target="slip" tal:attributes="href string:clearance_slip"
    14             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')">
    15             <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    16             Clearance/Eligibility Slip
     12           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')">
     13          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
     14          Clearance/Eligibility Slip
    1715        </a>
    18         </div>
    19 
    20         <a href=""
    21            tal:attributes="href string:${here/academicsParent}">
    22           <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    23           Up one level
    24         </a>       
    25        
    26         <h3>
    27            <span tal:condition="python:is_so and info">
    28              <span tal:content="info/student_name" />:
    29            </span>
    30            <span tal:condition="python:is_student">
    31              My
    32            </span>
    33            <span tal:content="context/title_or_id" />
    34         </h3>       
    35 
    36         <br />
    37         <span tal:omit-tag=""
    38               tal:content="structure python: info['clear_doc'].render(proxy=info['clear_doc'],
    39               layout_mode='view',
    40               layout_id='student_clearance_fe')"
    41               />
    42       </span>
    43     </metal:main>
     16      </div>
     17     
     18      <a href=""
     19         tal:attributes="href string:${here/academicsParent}">
     20        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
     21        Up one level
     22      </a>       
     23     
     24      <h3>
     25        <span tal:condition="python:is_so and info">
     26          <span tal:content="info/student_name" />:
     27        </span>
     28        <span tal:condition="python:is_student">
     29          My
     30        </span>
     31        <span tal:content="context/title_or_id" />
     32      </h3>       
     33     
     34      <br />
     35      <span tal:omit-tag=""
     36            tal:content="structure python: info['clear_doc'].render(proxy=info['clear_doc'],
     37            layout_mode='view',
     38            layout_id='student_clearance_fe')"
     39            />
     40    </span>
     41  </metal:main>
    4442</metal:body>
Note: See TracChangeset for help on using the changeset viewer.