Files
folkugat-web/folkugat_web/assets/templates/fragments/playlist/playlist.html
2025-12-20 23:48:54 +01:00

18 lines
556 B
HTML

<ul id="llista-{{ playlist_id }}" class="">
{% for set_entry in playlist.sets %}
{% set set_id = set_entry.id %}
{% include "fragments/playlist/set_entry.html" %}
{% endfor %}
</ul>
{% if logged_in %}
<div class="flex flex-col items-center">
<button class="text-beige mt-2"
hx-post="/api/llista/{{ playlist_id }}/set"
hx-target="#llista-{{ playlist_id }}"
hx-swap="beforeend transition:true">
<i class="fa fa-plus" aria-hidden="true"></i>
Afegeix set
</button>
</div>
{% endif %}