aboutsummaryrefslogtreecommitdiff
path: root/templates/macros.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/macros.j2')
-rw-r--r--templates/macros.j223
1 files changed, 0 insertions, 23 deletions
diff --git a/templates/macros.j2 b/templates/macros.j2
deleted file mode 100644
index 65d886f..0000000
--- a/templates/macros.j2
+++ /dev/null
@@ -1,23 +0,0 @@
-{% 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"> Court {{ 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 %}
-
-{% macro guests(count) -%}
-<div class="control" id="guests">
- <input class="input is-large is-responsive" type="text" style="text-align:center" value="{{ count }} Guests" disabled>
-</div>
-{%- endmacro %}
-
-{% macro timer(mins, secs) -%}
-<div hx-get="/time" hx-swap="outerHTML" hx-trigger="every 1s">
- <p class="title">⏲️ {{mins}}:{{secs}}</p>
-</div>
-{%- endmacro %} \ No newline at end of file