Upload files to "frontend/components"

This commit is contained in:
Thierry 2026-03-26 11:31:34 +01:00
parent 57ee7f3419
commit 392bdfca2f
5 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{#def label, variant="primary", type="button", disabled=False,
hx_post="", hx_get="", hx_target="", hx_swap="innerHTML",
hx_indicator="", hx_encoding="" #}
<button
type="{{ type }}"
class="btn btn-{{ variant }}"
{% if disabled %}disabled{% endif %}
{% if hx_post %}hx-post="{{ hx_post }}"{% endif %}
{% if hx_get %}hx-get="{{ hx_get }}"{% endif %}
{% if hx_target %}hx-target="{{ hx_target }}"{% endif %}
hx-swap="{{ hx_swap }}"
{% if hx_indicator %}hx-indicator="{{ hx_indicator }}"{% endif %}
{% if hx_encoding %}hx-encoding="{{ hx_encoding }}"{% endif %}
>
{{ label }}
</button>