aboutsummaryrefslogtreecommitdiff
path: root/app/templates/games.j2
blob: 00ffb710838a3cf1b6b645ac34942daded5016c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div id="games" class="overflow-auto">
    <h3> {{ title }} </h3>
    <table>
        <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[0].first_name == 'RESERVED' %} data-theme="dark" {% endif %}>
                <td align="center" style="width: 8%;">{{ game.court.id }}</th>
                <td style="width: 23%;"><strong>{{ game.team_1[0].first_name }}</strong>{{ " " + game.team_1[0].last_name }}</th>
                <td style="width: 23%;"><strong>{{ game.team_1[1].first_name }}</strong>{{ " " + game.team_1[1].last_name }}</th>
                <td style="width: 23%;"><strong>{{ game.team_2[0].first_name }}</strong>{{ " " + game.team_2[0].last_name }}</th>
                <td style="width: 23%;"><strong>{{ game.team_2[1].first_name }}</strong>{{ " " + game.team_2[1].last_name }}</th>
            </tr>
        {% endfor %}
        </tbody>
    </table>
<div>