Add game management features: create MusikGame model, implement game creation and detail views, and update group detail template

This commit is contained in:
Edgar P. Burkhart 2025-06-13 21:06:23 +02:00
parent 19e6eb32c8
commit f7baa91132
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
10 changed files with 275 additions and 2 deletions

View file

@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block content %}
<h1>
<i class="ri-play-circle-fill"></i> {{ musikgame.date }}
</h1>
<h2>
<i class="ri-group-2-fill"></i> Joueurs
</h2>
<ul>
{% for member in musikgame.players.all %}<li>{{ member }}</li>{% endfor %}
</ul>
<h2>
<i class="ri-music-2-fill"></i> Musiques
</h2>
<ol>
{% for music in musikgame.musicgameorder_set.all %}
<li>
<a href="https://youtu.be/{{ music.music_video.yt_id }}">{{ music.music_video.title }}</a>
</li>
{% endfor %}
</ol>
{% endblock content %}