{% extends "base.html" %} {% block style %} {% endblock %} {% macro row(item, badge) %}
{{ item.from.strftime("%a, %d %b %Y") }}
{{ item.to.strftime("%a, %d %b") }}
{{ (item.to.date() - item.from.date()).days }}
{{ item.name }}
{{ item.operator }}
{{ item.location }}
{% endmacro %} {% macro section(heading, item_list, badge) %} {% if item_list %}

{{heading}}

{% for item in item_list %}{{ row(item, badge) }}{% endfor %} {% endif %} {% endmacro %} {% block content %}

Accommodation

{{ section("Accommodation", items) }}
{% endblock %}