adrien fix tout les probleme!!! :)

This commit is contained in:
Adrien Audebert
2024-08-27 16:58:49 +02:00
parent 239a1d5583
commit 909a334a38
7 changed files with 79 additions and 269 deletions

View File

@@ -144,29 +144,7 @@
</tr>
</thead>
<tbody>
{% if matches %}
{% for match in matches %}
<tr>
<td>{{ match.id }}</td>
<td>{{ match.player1.name }}</td>
<td>{{ match.player2.name }}</td>
<td>{{ match.score_player1 }}</td>
<td>{{ match.score_player2 }}</td>
<td>{{ match.winner.name }}</td>
<td>{{ match.nbr_ball_touch_p1 }}</td>
<td>{{ match.nbr_ball_touch_p2 }}</td>
<td>{{ match.duration }}</td>
<td>{{ match.date }}</td>
<td>{{ match.is_tournoi }}</td>
<td>{{ match.tournoi.name }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="12">No matches found.</td>
</tr>
{% endif %}
</tbody>
</tbody>
</table>
</div>
@@ -191,30 +169,7 @@
</tr>
</thead>
<tbody>
{% if players %}
{% for player in players %}
<tr>
<td>{{ player.id }}</td>
<td>{{ player.name }}</td>
<td>{{ player.total_match }}</td>
<td>{{ player.total_win }}</td>
<td>{{ player.p_win }}</td>
<td>{{ player.m_score_match }}</td>
<td>{{ player.m_score_adv_match }}</td>
<td>{{ player.best_score }}</td>
<td>{{ player.m_nbr_ball_touch }}</td>
<td>{{ player.total_duration }}</td>
<td>{{ player.m_duration }}</td>
<td>{{ player.num_participated_tournaments }}</td>
<td>{{ player.num_won_tournaments }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="13">No players found.</td>
</tr>
{% endif %}
</tbody>
</tbody>
</table>
</div>
@@ -231,21 +186,6 @@
</tr>
</thead>
<tbody>
{% if tournois %}
{% for tournoi in tournois %}
<tr>
<td>{{ tournoi.id }}</td>
<td>{{ tournoi.name }}</td>
<td>{{ tournoi.nbr_player }}</td>
<td>{{ tournoi.date }}</td>
<td>{{ tournoi.winner.name }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="14">No tournois found.</td>
</tr>
{% endif %}
</tbody>
</table>
</div>