{% 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='', hide_label=false) %}
{% endmacro input %} {% macro checkbox(label, name, id='', checked=false) %} {% endmacro checkbox %} {% macro select(trip_types, select_name='trip_type', default='', selected_id='') %} {% endmacro select %} {% macro alert(message, type, class='') %}
{{ message }}
{% endmacro alert %} {% macro box(participants, empty_seats='', header='Freie Plätze:', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %}
{{ header }} {{ empty_seats }}
{% if participants | length > 0 %} {% for rower in participants %} {{ rower.name }} {% if rower.is_guest %} (Gast) {% endif %}
{% endfor %} {% else %} {{ text }} {% endif %}
{% endmacro box %}