Added indexed lists and link edition in tunes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<form id="tema-lyric-{{ lyric_idx }}">
|
||||
<form id="tema-lyric-{{ lyric.id }}">
|
||||
<h5 class="text-sm text-beige text-right">
|
||||
<input name="title"
|
||||
placeholder="Nom de la lletra"
|
||||
@@ -9,15 +9,15 @@
|
||||
/>
|
||||
<button title="Desa els canvis"
|
||||
class="mx-1"
|
||||
hx-put="/api/tema/{{ tema.id }}/lyric/{{ lyric_idx }}"
|
||||
hx-target="#tema-lyric-{{ lyric_idx }}"
|
||||
hx-put="/api/tema/{{ tema.id }}/lyric/{{ lyric.id }}"
|
||||
hx-target="#tema-lyric-{{ lyric.id }}"
|
||||
hx-swap="outerHTML">
|
||||
<i class="fa fa-check" aria-hidden="true"></i>
|
||||
</button>
|
||||
<button title="Descarta els canvis"
|
||||
class="mx-1"
|
||||
hx-get="/api/tema/{{ tema.id }}/lyric/{{ lyric_idx }}"
|
||||
hx-target="#tema-lyric-{{ lyric_idx }}"
|
||||
hx-get="/api/tema/{{ tema.id }}/lyric/{{ lyric.id }}"
|
||||
hx-target="#tema-lyric-{{ lyric.id }}"
|
||||
hx-swap="outerHTML">
|
||||
<i class="fa fa-times" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user