summaryrefslogtreecommitdiff
path: root/templates/games.j2
blob: 0285de151c73fb5c67e55ce8a4604d633c6f2289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth" id="games">
<thead>
    <th colspan="5" align="center"> {{ title }} </th>
</thead>
<thead>
    <th align="center"> Court </th>
    <th colspan="2" align="center"> Team 1 </th>
    <th colspan="2" align="center"> Team 2 </th>
</thead>
<tbody>
{% for game in games %}
    <tr {% if game.team1.player1 == 'RESERVED' %} class="is-danger" {% endif %}>
        <th align="center">{{ game.court }}</th>
        <td>{{ game.team1.player1 }}</th>
        <td>{{ game.team1.player2 }}</th>
        <td>{{ game.team2.player1 }}</th>
        <td>{{ game.team2.player2 }}</th>
    </tr>
{% endfor %}
</tbody>
</table>