Update game answer handling and UI for completed games

This commit is contained in:
Edgar P. Burkhart 2025-06-15 13:59:22 +02:00
parent 303538bf48
commit 3d585e1e14
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
4 changed files with 29 additions and 10 deletions

View file

@ -21,6 +21,6 @@
{% endfor %}
</tbody>
</table>
<button type="submit">Valider mes réponses</button>
{% if not musikgame.over %}<button type="submit">Valider mes réponses</button>{% endif %}
</form>
{% endblock content %}

View file

@ -17,7 +17,11 @@
href="{% yt_playlist musikgame %}"
role="button"
{% if musikgame.playlist_loading %}aria-busy="true"{% endif %}><i class="ri-youtube-fill"></i> Playlist</a>
{% if not musikgame.over %}
{% if musikgame.over %}
<a href="{% url "game_answer" musikgame.pk %}"
role="button"
class="secondary"><i class="ri-play-list-2-fill"></i> Mes réponses</a>
{% else %}
<a href="{% url "game_answer" musikgame.pk %}" role="button"><i class="ri-play-list-2-fill"></i> Répondre</a>
{% endif %}
</fieldset>