Tune editor

This commit is contained in:
marc
2025-03-16 18:45:08 +01:00
parent a85efd0838
commit 6c83d11e5b
33 changed files with 960 additions and 312 deletions

View File

@@ -0,0 +1,24 @@
{% if logged_in or tema.properties %}
<h4 class="text-xl mt-3 text-beige">Informació</h4>
<hr class="h-px mt-1 mb-3 bg-beige border-0">
<ul class="flex flex-col"
id="new-property-target">
{% for property in tema.properties %}
{% include "fragments/tema/property.html" %}
{% endfor %}
</ul>
{% endif %}
{% if logged_in %}
<div class="flex flex-row my-2 justify-end">
<button title="Afegeix informació"
class="text-sm text-beige text-right"
hx-post="/api/tema/{{ tema.id }}/property"
hx-target="#new-property-target"
hx-swap="beforeend transition:true">
<i class="fa fa-plus" aria-hidden="true"></i>
Afegeix informació
</button>
</div>
{% endif %}