Fix condition check for musikgame existence in group detail template; add results section in musikgame detail template; update order range in GameCreateView

This commit is contained in:
Edgar P. Burkhart 2025-06-14 00:19:44 +02:00
parent 78e5be580b
commit c320015205
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 36 additions and 2 deletions

View file

@ -24,4 +24,38 @@
</li>
{% endfor %}
</ol>
<h2>
<i class="ri-list-ordered"></i> Résultats
</h2>
<details>
<summary role="button">
<i class="ri-list-ordered-2"></i> Résultats
</summary>
<table class="striped">
<thead>
<tr>
<th>
<i class="ri-list-ordered-2"></i>
</th>
<th>
<i class="ri-music-2-fill"></i> Musique
</th>
<th>
<i class="ri-user-line"></i> Joueur
</th>
</tr>
</thead>
<tbody>
{% for music in musikgame.musicgameorder_set.all %}
<tr>
<td>{{ music.order }}</td>
<td>
<a href="https://youtu.be/{{ music.music_video.yt_id }}">{{ music.music_video.title }}</a>
</td>
<td>{{ music.player }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</details>
{% endblock content %}