27 lines
853 B
HTML
27 lines
853 B
HTML
<div class="flex flex-row flex-wrap justify-center"
|
|
id="tema-title">
|
|
<form>
|
|
<input name="title"
|
|
placeholder="Nom del tema"
|
|
value="{{ tema.title }}"
|
|
class="border border-beige focus:outline-none
|
|
rounded text-3xl
|
|
bg-brown p-2 m-0"
|
|
/>
|
|
<button title="Desa"
|
|
class="text-beige text-3xl mx-1"
|
|
hx-put="/api/tema/{{ tema.id }}/title"
|
|
hx-target="#tema-title"
|
|
hx-swap="outerHTML">
|
|
<i class="fa fa-check" aria-hidden="true"></i>
|
|
</button>
|
|
<button title="Descarta"
|
|
class="text-beige text-3xl mx-1"
|
|
hx-get="/api/tema/{{ tema.id }}/title"
|
|
hx-target="#tema-title"
|
|
hx-swap="outerHTML">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</form>
|
|
</div>
|