Ca casse les couilles, tounroi veut pas s'afficher, I need chatgpt plus prenium extra !

This commit is contained in:
Theouche
2024-08-12 17:16:13 +02:00
parent 0a0641db1f
commit b1c865acae
5 changed files with 100 additions and 19 deletions

View File

@@ -208,6 +208,8 @@
<div id="dropdown-menu" class="dropdown-content">
<a href="#" data-table="player-list">Players</a>
<a href="#" data-table="match-list">Matches</a>
<a href="#" data-table="tournoi-list">Tournois</a>
<a href="#" data-table="blockchain-list">blockchain</a>
</div>
</div>
@@ -268,7 +270,7 @@
</table>
</div>
<div id="player-list" class="content-list" style="display:none;">
<div id="player-list" class="content-list" style="display: none;">
<h1>Players</h1>
<table>
<thead>
@@ -314,6 +316,36 @@
</table>
</div>
<div id="tournoi-list" class="content-list" style="display: none;">
<h1>Tournois</h1>
<table>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Nbr_players</th>
<th>Date</th>
<th>Winner</th>
</tr>
</thead>
<tbody>
{% 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>
{% empty %}
<tr>
<td colspan="14">No tournois found.</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<script src="{% static 'game.js' %}"></script>
<script>
const translations = {