{% macro header(loggedin_user) %}
Hü {{ loggedin_user.name }}
{% include "includes/question-icon" %} FAQs {% 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 }} {% if empty_seats >= 0 %} {{ empty_seats }} {% else %} 0 {% endif %}
{% if participants | length > 0 %} {% for rower in participants %} {{ rower.name }} {% if rower.is_guest %} (Gast) {% endif %}
{% endfor %} {% else %} {{ text }} {% endif %}
{% endmacro box %} {% macro faq(question, answer) %}

{{ question }}

{{ answer | safe }}

{% endmacro faq %}