Add game management features: create MusikGame model, implement game creation and detail views, and update group detail template
This commit is contained in:
parent
19e6eb32c8
commit
f7baa91132
10 changed files with 275 additions and 2 deletions
22
game/templates/game/musikgame_detail.html
Normal file
22
game/templates/game/musikgame_detail.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue