{% import "includes/macros" as macros %} {% import "includes/forms/log" as log %} {% import "includes/forms/boat" as boat %} {% extends "base" %} {% macro show_place(aisle_name, side_name, level) %}
  • {% set aisle = aisle_name ~ "-aisle" %} {% set place = boathouse[aisle][side_name] %} {% if place[level] %} {{ place[level].1.name }} X {% elif boats | length > 0 %} {% if "admin" in loggedin_user.roles %}
    Kein Boot
    {{ macros::select(label="Boot", data=boats, name="boat_id", id="boat_id", display=["name", " (","amount_seats", " x)"], wrapper_class="col-span-4") }}
    {% else %} Kein Boot {% endif %} {% else %} Kein Boot {% endif %}
  • {% endmacro show_place %} {% macro show_side(aisle_name, side_name) %}
      {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 0) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 1) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 2) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 3) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 4) }} {% if aisle_name != 'water' or side_name != 'water' %} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 5) }} {% endif %} {% set show_additional = false %} {% if aisle_name == "mountain" %} {% set show_additional = true %} {% elif aisle_name == "middle" and side_name == "mountain" %} {% set show_additional = true %} {% endif %} {% if show_additional %}
      {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 6) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 7) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 8) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 9) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 10) }} {{ self::show_place(aisle_name = aisle_name, side_name = side_name, level = 11) }} {% endif %}
    {% endmacro show_side %} {% macro show_aisle(name, last=false) %}

    {% if name == "water" %} 🌊 {% elif name == "middle" %} ◯ {% else %} ⛰️ {% endif %} - Gang

    {{ self::show_side(aisle_name = name, side_name = "mountain") }} {{ self::show_side(aisle_name = name, side_name = "water") }}
    {% endmacro show_aisle %} {% block content %}

    Bootshaus

    {{ self::show_aisle(name = "mountain") }} {{ self::show_aisle(name = "middle") }} {{ self::show_aisle(name = "water", last = true) }}
    {% endblock content %}