{% macro header(loggedin_user) %}
Hü {{ loggedin_user.name }}
{% include "includes/question-icon" %} FAQs {% include "includes/book" %} Logbuch {% 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, id='', autofocus=false, wrapper_class='') %}
{% endmacro input %} {% macro checkbox(label, name, id='', checked=false, class='', disabled=false) %} {% endmacro checkbox %} {% macro select(label, data, name='trip_type', default='', id='', selected_id='', display='', extras='', class='', wrapper_class='') %}
{% if display == '' %} {% set display = ["name"] %} {% endif %}
{% 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', trip_details_id='', allow_removing=false) %}
{{ header }} {{ empty_seats }}
{% if participants | length > 0 %} {% for rower in participants %} {{ rower.name }} {% if rower.is_guest %} (Scheckbuch) {% endif %} {% if rower.is_real_guest %} (Gast) {% if allow_removing %} Abmelden {% endif %} {% endif %}
{% endfor %} {% else %} {{ text }} {% endif %}
{% endmacro box %} {% macro faq(question, answer) %}

{{ question }}

{{ answer | safe }}

{% endmacro faq %}