1 | <metal:html tal:define="info context/getAccoHallInfo"> |
---|
2 | <metal:body use-macro="here/main_template/macros/master"> |
---|
3 | <metal:block fill-slot="header"> |
---|
4 | <a href="" |
---|
5 | tal:attributes="href string:${here/academicsParent}"> |
---|
6 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
7 | Up one level |
---|
8 | </a> |
---|
9 | <h3 tal:content="here/title_or_id" /> |
---|
10 | <div tal:condition="nothing" tal:content="info/container_path"/> |
---|
11 | <br /> |
---|
12 | |
---|
13 | </metal:block> |
---|
14 | <metal:main fill-slot="main"> |
---|
15 | <span tal:omit-tag="" |
---|
16 | tal:content="structure python: info['doc'].render(layout_mode='view')" /> |
---|
17 | <br /> |
---|
18 | <table tal:condition="info/bed_types" |
---|
19 | tal:define="bed_types info/bed_types"> |
---|
20 | <tr> |
---|
21 | <th width="200px">Bed Type</th> |
---|
22 | <th width="80px">Total</th> |
---|
23 | <th width="80px">Booked</th> |
---|
24 | </tr> |
---|
25 | <tr tal:repeat="bt bed_types"> |
---|
26 | <td tal:content="bt/name" /> |
---|
27 | <td tal:content="bt/total" /> |
---|
28 | <td tal:content="bt/reserved" /> |
---|
29 | </tr> |
---|
30 | <tr><td> </td></tr> |
---|
31 | </table> |
---|
32 | <br /> |
---|
33 | <div> |
---|
34 | <a href="download" |
---|
35 | tal:attributes="href string:hall_allocation_list"> |
---|
36 | <strong>Download bedlist as csv file</strong></a> |
---|
37 | </div> |
---|
38 | <br /> |
---|
39 | <table tal:condition="python:info['reserved']" |
---|
40 | tal:define="reserved info/reserved"> |
---|
41 | <tr> |
---|
42 | <th width="100px">Student Id</th> |
---|
43 | <th width="300px">Name</th> |
---|
44 | <th width="200px">Bed</th> |
---|
45 | </tr> |
---|
46 | <tr tal:repeat="bt reserved"> |
---|
47 | <td> |
---|
48 | <a href="" tal:attributes="href bt/student_url" |
---|
49 | tal:content="bt/student"></a> |
---|
50 | </td> |
---|
51 | <td tal:content="bt/name" /> |
---|
52 | <td tal:content="bt/bed" /> |
---|
53 | </tr> |
---|
54 | </table> |
---|
55 | |
---|
56 | </metal:main> |
---|
57 | |
---|
58 | <metal:sub fill-slot="sub"/> |
---|
59 | </metal:body> |
---|
60 | </metal:html> |
---|