diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/macros.j2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/macros.j2 b/templates/macros.j2 index b4767be..7117d11 100644 --- a/templates/macros.j2 +++ b/templates/macros.j2 @@ -8,4 +8,16 @@ <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">Timer: {{mins}}:{{secs}}</p> +</div> {%- endmacro %}
\ No newline at end of file |
