{% macro header(loggedin_user) %}
Hallo {{ loggedin_user.name }}
{% if loggedin_user.is_admin %} Userverwaltung {% endif %} Ausloggen
{% endmacro header %} {% macro input(label, name, type, required=false, class='rounded-md', value='', min='') %} {% endmacro input %} {% macro checkbox(label, name, id='', checked=false) %} {% endmacro checkbox %} {% macro alert(message, type, class='') %}
{{ message }}
{% endmacro alert %} {% macro box(participants, empty_seats, header='Ruderer können noch teilnehmen', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %}
{{ empty_seats }} {{ header }}
{% if participants | length > 0 %} {% for rower in participants %} {{ rower.name }} {% if rower.is_guest %} (Gast) {% endif %}
{% endfor %} {% else %} {{ text }} {% endif %}
{% endmacro box %}