aboutsummaryrefslogtreecommitdiff
path: root/app/templates/games.j2
blob: ccfd395351cf9f79e73e8db44eabae38a57fb94e (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.team_1.player_1.first_name == 'RESERVED' %} class="is-danger" {% endif %}>
        <th align="center" style="width: 8%;">{{ game.court_id }}</th>
        <td style="width: 23%;"><strong>{{ game.team_1.player_1.first_name }}</strong>{{ " " + game.team_1.player_1.last_name }}</th>
        <td style="width: 23%;"><strong>{{ game.team_1.player_2.first_name }}</strong>{{ " " + game.team_1.player_2.last_name }}</th>
        <td style="width: 23%;"><strong>{{ game.team_2.player_1.first_name }}</strong>{{ " " + game.team_2.player_1.last_name }}</th>
        <td style="width: 23%;"><strong>{{ game.team_2.player_2.first_name }}</strong>{{ " " + game.team_2.player_2.last_name }}</th>
    </tr>
{% endfor %}
</tbody>
</table>