{% extends "base.html" %} {% from "macros.html" import conference_row, accommodation_row, flight_row, train_row with context %} {% block style %} {% set conference_column_count = 6 %} {% set accommodation_column_count = 7 %} {% set travel_column_count = 7 %} {% endblock %} {% block content %}
{% set row = { "flight": flight_row, "train": train_row } %}

Trips

{% for trip in trips %}

{{ trip.title }}

Countries: {{ trip.countries_str }}

{% for conf in trip.conferences %} {{ conference_row(conf, "going") }} {% endfor %}
{% for conf in trip.accommodation %} {{ accommodation_row(conf, "going") }} {% endfor %}
{% for item in trip.travel %} {{ row[item.type](item) }} {% endfor %}
{% endfor %}
{% endblock %}