{% macro plannedtrips() %} {% if planned_trips %}

Heute geplante Ausfahrten

{% for planned_trip in planned_trips | sort(attribute='planned_starting_time') %}
{% set amount_members = planned_trip.rower | length + 1 %} {{ planned_trip.cox_name }} ({{ amount_members }} Person{{ amount_members | pluralize(singular="", plural="en") }}) {{ planned_trip.planned_starting_time }}
{% endfor %}
{% endif %} {% endmacro plannedtrips %} {% macro boatreservation() %}

Reservierungen ({{ reservations | length }})

{% for _, reservations_for_event in reservations %} {% set reservation = reservations_for_event[0] %}
{{ reservation.start_date | date(format="%d.%m.%Y") }} {% if reservation.end_date != reservation.start_date %} - {{ reservation.end_date | date(format="%d.%m.%Y") }} {% endif %} ({{ reservation.time_desc }}) {% for reservation in reservations_for_event %} {{ reservation.boat.name }} {% if not loop.last %}+{% endif %} {% endfor %} ({{ reservation.user_applicant.name }}) {{ reservation.usage }}
{% else %}

Keine Reservierung

{% endfor %}
{% endmacro boatreservation %} {% macro header(loggedin_user) %}
{% if loggedin_user.amount_unread_notifications > 0 %} {{ loggedin_user.amount_unread_notifications }} {% endif %} {% include "includes/book" %} Logbuch
{% endmacro header %} {% macro input(label, name, type, required=false, class='rounded-md', value='', min='', hide_label=false, id='', autofocus=false, wrapper_class='', pattern='', readonly=false, accept='') %}
{% endmacro input %} {% macro checkbox(label, name, id='', checked=false, class='', disabled=false, readonly=false) %} {% endmacro checkbox %} {% macro select(label, data, name='trip_type', default='', id='', selected_id='', display='', extras='', class='', wrapper_class='', required=false, show_seats=false, new_last_entry='', nonSelectableDefault=false) %}
{% 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 %}