Upload files to "frontend/components"
This commit is contained in:
parent
57ee7f3419
commit
392bdfca2f
5 changed files with 77 additions and 0 deletions
16
frontend/components/Button.jinja
Normal file
16
frontend/components/Button.jinja
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue