source: WAeUP_SRP/trunk/skins/waeup_accommodation/acco_hall_view.pt @ 830

Last change on this file since 830 was 805, checked in by joachim, 18 years ago

propset Id

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1<metal:html tal:define="info context/getAccoHallInfo;
2            is_manager info/is_manager|nothing;"
3            >
4  <metal:body use-macro="here/waeup_content_master/macros/master">
5    <metal:block fill-slot="header">
6      <a href=""
7         tal:attributes="href string:${here/academicsParent}">
8        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
9        Up one level
10      </a>
11      <h3 tal:content="here/title_or_id" />
12      <div tal:condition="nothing" tal:content="info/container_path"/>
13      <br />
14
15    </metal:block>
16    <metal:main fill-slot="main">
17      <span tal:omit-tag="" 
18            tal:content="structure python: info['doc'].render(layout_mode='view')" />
19      <br />
20      <table tal:condition="info/bed_types"
21             tal:define="bed_types info/bed_types">
22        <tr>
23          <th width="200px">Bed Type</th>
24          <th width="80px">Total</th>
25          <th width="80px">Booked</th>
26        </tr>
27        <tr tal:repeat="bt bed_types">
28          <td tal:content="bt/name" />
29          <td tal:content="bt/total" />
30          <td tal:content="bt/reserved" />
31        </tr>
32        <tr><td>&nbsp;</td></tr>
33      </table>
34      <br />
35      <table tal:condition="info/reserved"
36             tal:define="reserved info/reserved">
37        <tr>
38          <th width="200px">Student</th>
39          <th>Bed</th>
40        </tr>
41        <tr tal:repeat="bt reserved">
42          <td>
43            <a href="" tal:attributes="href bt/student_url"
44               tal:content="bt/student"></a>
45          </td>
46          <td tal:content="bt/bed" />
47        </tr>
48      </table>
49
50    </metal:main>
51   
52    <metal:sub fill-slot="sub"/>
53  </metal:body>
54</metal:html>
Note: See TracBrowser for help on using the repository browser.