Pàgines llista de reproducció
This commit is contained in:
19
folkugat_web/assets/templates/fragments/playlist/name.html
Normal file
19
folkugat_web/assets/templates/fragments/playlist/name.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<div class="flex flex-row flex-wrap justify-center"
|
||||
id="playlist-name">
|
||||
<h3 class="text-3xl text-center p-4">
|
||||
{% if playlist.name %}
|
||||
{{ playlist.name }}
|
||||
{% else %}
|
||||
Llista de temes
|
||||
{% endif %}
|
||||
</h3>
|
||||
{% if logged_in %}
|
||||
<button title="Canvia el nom"
|
||||
class="text-beige text-2xl mx-2"
|
||||
hx-get="/api/playlist/{{ playlist.id }}/editor/name"
|
||||
hx-target="#playlist-name"
|
||||
hx-swap="outerHTML">
|
||||
<i class="fa fa-pencil" aria-hidden="true"></i>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user