skip queue

This commit is contained in:
2024-07-20 09:52:50 +02:00
parent 5858cee900
commit 58e8bbbbef
7 changed files with 59 additions and 10 deletions
+8 -3
View File
@@ -41,14 +41,19 @@ Stemmen
></a>
</div>
</fieldset>
<div class="skip-wrapper">
{% if not skipped %}
{% csrf_token %}
<button class="skip" hx-post="{% url 'skip' %}" >Skip</button>
{% endif %}
</div>
<div class="undo-wrapper" hx-vals='{"spotify_id": "{{ undo.track.id }}"}' >
{% if undo %}
<!--<form class="undo-wrapper" method="post" action="{% url 'undo' %}" hx-vals='{"spotify_id": "{{ undo.track.id }}"}' >-->
<div class="undo-wrapper" hx-vals='{"spotify_id": "{{ undo.track.id }}"}' >
{% csrf_token %}
<p>Je hebt {{undo.track}} een score van {{undo.points}} sterren gegeven!</p>
<button class="undo" hx-post="{% url 'undo' %}" >Undo</button>
</div>
{% endif %}
</div>
</div>
</div>
{% else %}