{% macro header(loggedin_user) %}
Hü {{ loggedin_user.name }}
{% include "includes/question-icon" %} FAQs {% if loggedin_user.is_admin%} Bootsschaden Bootsschaden {% endif %} {% if loggedin_user.is_admin %} STATS Logbuch LOGBUCH HISTORY Logbuch History LOGBUCH Logbuch BOATS Bootsverwaltung 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='') %} {% endmacro checkbox %} {% macro select(data, name='trip_type', default='', id='', selected_id='', display='', extras='', 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 %}