{% 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='') %} {% 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 }}
{% endfor %} {% else %} {{ text }} {% endif %}
{% endmacro box %}