Spotify user api integration
En een begin aan een playlist maker. Doet op het moment niet veel.
This commit is contained in:
@@ -18,18 +18,6 @@ Stemmen
|
||||
<fieldset>
|
||||
<legend>Hoeveel sterren geef jij dit?</legend>
|
||||
<div class="star-wrapper">
|
||||
<a
|
||||
hx-vals='{"vote": "-2"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
></a>
|
||||
<a
|
||||
hx-vals='{"vote": "-1"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
></a>
|
||||
<a
|
||||
hx-vals='{"vote": "0"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
></a>
|
||||
<a
|
||||
hx-vals='{"vote": "1"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
@@ -38,13 +26,25 @@ Stemmen
|
||||
hx-vals='{"vote": "2"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
></a>
|
||||
<a
|
||||
hx-vals='{"vote": "3"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
></a>
|
||||
<a
|
||||
hx-vals='{"vote": "4"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
></a>
|
||||
<a
|
||||
hx-vals='{"vote": "5"}'
|
||||
hx-post="{% url 'vote' %}"
|
||||
></a>
|
||||
</div>
|
||||
</fieldset>
|
||||
{% 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 | add:3}} sterren gegeven!</p>
|
||||
<p>Je hebt {{undo.track}} een score van {{undo.points}} sterren gegeven!</p>
|
||||
<button class="undo" hx-post="{% url 'undo' %}" >Undo</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user