{% 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 %}
    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 %}
  • {% 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) }}
    {% endmacro show_side %} {% macro show_aisle(name, last=false) %}
    {{ 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 %}