Changeset 1132 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
22 Dec 2006, 09:40:12 (18 years ago)
Author:
Henrik Bettermann
Message:

pume not shown to student
student_view table layout changed

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r1103 r1132  
    147147        row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link)
    148148    row['review_state'] = so.review_state
    149     row['display'] = so.review_state in ('opened','closed','bed_reserved','maintenance_fee_paid',) or so.portal_type == 'StudentStudyCourse'
     149    row['display'] = so.review_state in ('opened','closed','bed_reserved','maintenance_fee_paid',) and so.portal_type != 'StudentPume' or so.portal_type == 'StudentStudyCourse'
    150150    items.append(row)
    151151info['items'] = items
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r1096 r1132  
    4343        </table>
    4444
    45     <table tal:condition="is_student" class="contentListing" width="100%" summary="content layout" id="folder_content">     
     45    <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content">     
    4646      <span tal:repeat="row rows">
    47         <tr tal:condition="row/display"
    48             tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     47        <tr tal:condition="row/display">
    4948          <td><a href="view" tal:condition="row/s_view_link"
    5049                 tal:attributes="href string:${row/s_view_link}">
     
    5251           <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
    5352          </td>
    54           <td>
     53
     54          <td width="80px" align="center">
    5555            <a tal:condition="python: row['s_edit_link'] and row['is_editable']"
    5656               href="edit" tal:attributes="href string:${row/s_edit_link}">
    5757              [edit]
    58             </a>
     58            </a>     
     59          </td>                 
     60         
     61          <td width="100px" align="left">
     62              <span tal:content="row/review_state" />
    5963          </td>
     64
     65
     66
    6067        </tr>
    6168      </span>
Note: See TracChangeset for help on using the changeset viewer.