diff --git a/templates/trips.html b/templates/trips.html new file mode 100644 index 0000000..48005d3 --- /dev/null +++ b/templates/trips.html @@ -0,0 +1,69 @@ +{% 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 %} +