Session editor and live sessions!
This commit is contained in:
17
folkugat_web/assets/templates/fragments/sessio/playlist.html
Normal file
17
folkugat_web/assets/templates/fragments/sessio/playlist.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<ul id="playlist-{{ session.id }}" class="">
|
||||
{% for set_entry in playlist.sets %}
|
||||
{% set set_id = set_entry.id %}
|
||||
{% include "fragments/sessio/set_entry.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if logged_in %}
|
||||
<div class="flex flex-col items-center">
|
||||
<button class="text-beige mt-2"
|
||||
hx-post="/api/sessio/{{ session.id }}/set"
|
||||
hx-target="#playlist-{{ session.id }}"
|
||||
hx-swap="beforeend transition:true">
|
||||
<i class="fa fa-plus" aria-hidden="true"></i>
|
||||
Afegeix set
|
||||
</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user