26d0018ffd7e540056684fcffa960ad12e93ae76
[matthijs/projects/dorestad-bookings.git] / bookings.html
1 {% extends "tickets/base.html" %}
2
3 {% block content %}
4 <h1>Overzicht reserveringen</h1>
5 <table>
6     <thead>
7         <tr><th>Voorstelling</th><th>Reserveringen</th><th>Gereserveerde kaarten</th><th>Betaalde kaarten</th></tr>
8     </thead>
9     <tbody>
10 {% for show, info in shows.items %}
11 <tr><td>{{ show }}</td><td>{{ info.bookings|length }}</td><td>{{ info.tickets }}</td><td>{{ info.payed|length }}</td></tr>
12 {% endfor %}
13     </tbody>
14 </table>
15
16 {% for show, info in shows.items %}
17 <h2>{{ show }}</h2>
18 <table>
19     <thead>
20         <tr><th>#</th><th>Naam</th><th>Aantal kaarten</th><th>Betaling verwerkt op</th></tr>
21     </thead>
22     <tbody>
23         {% for b in info.bookings %}
24             <tr><td>{{ b.pk }}</td><td>{{ b.name }}</td><td>{{ b.tickets }}</td><td>{{ b.payment }}</td></tr>
25         {% endfor %}
26     </tbody>
27 </table>
28 {% endfor %}
29 {% endblock %}