Update game answer handling and UI for completed games
This commit is contained in:
parent
303538bf48
commit
3d585e1e14
4 changed files with 29 additions and 10 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue