Tune editor
This commit is contained in:
15
folkugat_web/assets/templates/fragments/tema/visibility.html
Normal file
15
folkugat_web/assets/templates/fragments/tema/visibility.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% if not tema.hidden %}
|
||||
<button title="Tema visible (amaga'l)"
|
||||
class="text-beige text-2xl mx-2"
|
||||
hx-put="/api/tema/{{ tema.id }}/invisible"
|
||||
hx-swap="outerHTML">
|
||||
<i class="fa fa-eye" aria-hidden="true"></i>
|
||||
</button>
|
||||
{% else %}
|
||||
<button title="Tema invisible (mostra'l)"
|
||||
class="text-beige text-2xl mx-2"
|
||||
hx-put="/api/tema/{{ tema.id }}/visible"
|
||||
hx-swap="outerHTML">
|
||||
<i class="fa fa-eye-slash" aria-hidden="true"></i>
|
||||
</button>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user