{% import "includes/macros" as macros %} {% extends "base" %} {% block content %}

Ergo Challenges

{% if flash %}{{ macros::alert(message=flash.1, type=flash.0, class="my-3") }}{% endif %}

Neuer Eintrag

Dirty Thirty
{{ macros::input(label="Distanz [m]", name="result", required=true, type="number", class="input rounded-md") }}
Dirty Dozen
{{ macros::input(label="Zeit [hh:mm:ss.s] oder Distanz [m]", name="result", required=true, type="text", class="input rounded-md", pattern="(?:\d+:\d{2}:\d{2}\.\d+|\d{1,2}:\d{2}\.\d+|\d+(\.\d+)?)") }}

Aktuelle Woche

Dirty Thirty ({{ thirty | length }})
    {% for stat in thirty %}
  1. {{ stat.name }}: {{ stat.result }}
  2. {% endfor %}
Dirty Dozen ({{ dozen | length }})
    {% for stat in dozen %}
  1. {{ stat.name }}: {{ stat.result }}
  2. {% endfor %}
{% if "admin" in loggedin_user.roles %}

Update

Dirty Thirty ({{ thirty | length }})
    {% for stat in thirty %}
  1. {{ stat.name }}:
  2. {% endfor %}
Dirty Dozen ({{ dozen | length }})
    {% for stat in dozen %}
  1. {{ stat.name }}:
  2. {% endfor %}
{% endif %}
{% endblock content %}