diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 21:47:26 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 21:47:26 +0200 |
| commit | 74480cbe2b335fd141cdf5f07bb08808c0d08692 (patch) | |
| tree | ca9f5c55579acfd8394469e2644dc41dfd625988 /templates/macros.j2 | |
| parent | 83cb89862c7c330552c48d9b25f898388693c420 (diff) | |
Added all macros and also stored the js, css, png and ico files
Diffstat (limited to 'templates/macros.j2')
| -rw-r--r-- | templates/macros.j2 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/macros.j2 b/templates/macros.j2 new file mode 100644 index 0000000..b4767be --- /dev/null +++ b/templates/macros.j2 @@ -0,0 +1,11 @@ +{% macro court(id, status) -%} +<button class= "button is-large is-responsive {% if status %}is-success{% else %}is-danger{% endif %}" + hx-post="{{ "/court-toggle/" ~ id}}" + hx-swap="outerHTML">{{ id }}</button> +{%- endmacro %} + +{% macro player(id, status, name) -%} +<button class="button is-medium is-responsive {% if status %}is-success{% else %}is-danger {% endif %}" + hx-post="{{ "/player-toggle/" ~ id}}" + hx-swap="outerHTML"> {{ name }} </button> +{%- endmacro %}
\ No newline at end of file |
