source: main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser_templates/containerstatistics.pt @ 17755

Last change on this file since 17755 was 13484, checked in by Henrik Bettermann, 9 years ago

Add bed statistics view components.

File size: 761 bytes
Line 
1<tal:statistics define="stats context/statistics" i18n:domain="waeup.kofa">
2  <table class="table">
3    <thead>
4      <tr>
5        <th i18n:translate="" width="40%">Bed Type</th>
6        <th i18n:translate="">Occupied</th>
7        <th i18n:translate="">Free</th>
8        <th i18n:translate="">Total</th>
9      </tr>
10    </thead>
11    <tbody>
12      <tr tal:repeat="bed_type python:sorted(stats.keys())">
13        <td tal:content="bed_type">TYPE</td>
14        <td style="width: 100px;" tal:content="python: stats[bed_type][0]">OCCUPIED</td>
15        <td style="width: 100px;" tal:content="python: stats[bed_type][1]">FREE</td>
16        <td style="width: 100px;" tal:content="python: stats[bed_type][2]">TOTAL</td>
17      </tr>
18    </tbody>
19  </table>
20</tal:statistics>
Note: See TracBrowser for help on using the repository browser.