2023-11-19 15:22:12 +00:00
|
|
|
{% extends "base.html" %}
|
2024-04-20 14:17:32 +01:00
|
|
|
{% from "macros.html" import flight_booking_row, train_row with context %}
|
2023-11-19 15:22:12 +00:00
|
|
|
|
2024-04-16 22:01:16 +01:00
|
|
|
{% block title %}Travel - Edward Betts{% endblock %}
|
|
|
|
|
2024-04-20 14:17:32 +01:00
|
|
|
{% set flight_column_count = 10 %}
|
2024-04-17 11:40:13 +01:00
|
|
|
{% set column_count = 10 %}
|
|
|
|
|
2023-11-19 15:22:12 +00:00
|
|
|
{% block style %}
|
|
|
|
<style>
|
|
|
|
.grid-container {
|
|
|
|
display: grid;
|
2024-04-20 14:17:32 +01:00
|
|
|
grid-template-columns: repeat({{ flight_column_count }}, auto);
|
2023-11-19 15:22:12 +00:00
|
|
|
gap: 10px;
|
|
|
|
justify-content: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.train-grid-container {
|
|
|
|
display: grid;
|
2024-04-17 11:40:13 +01:00
|
|
|
grid-template-columns: repeat({{ column_count }}, auto);
|
2023-11-19 15:22:12 +00:00
|
|
|
gap: 10px;
|
|
|
|
justify-content: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-item {
|
|
|
|
/* Additional styling for grid items can go here */
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="container-fluid mt-2">
|
|
|
|
|
|
|
|
<h1>Travel</h1>
|
|
|
|
|
|
|
|
<h3>flights</h3>
|
|
|
|
|
|
|
|
<div class="grid-container">
|
2024-04-20 14:17:32 +01:00
|
|
|
<div class="grid-item">reference</div>
|
|
|
|
<div class="grid-item">price</div>
|
2023-11-19 15:22:12 +00:00
|
|
|
<div class="grid-item text-end">date</div>
|
|
|
|
<div class="grid-item">route</div>
|
|
|
|
<div class="grid-item">take-off</div>
|
|
|
|
<div class="grid-item">land</div>
|
|
|
|
<div class="grid-item">duration</div>
|
|
|
|
<div class="grid-item">flight</div>
|
2024-01-14 18:16:20 +00:00
|
|
|
<div class="grid-item">tracking</div>
|
2024-04-20 14:17:32 +01:00
|
|
|
<div class="grid-item">distance</div>
|
2023-11-19 15:22:12 +00:00
|
|
|
|
2024-04-20 14:17:32 +01:00
|
|
|
{% for item in flights %}
|
|
|
|
{{ flight_booking_row(item) }}
|
2023-11-19 15:22:12 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3 class="mt-4">trains</h3>
|
|
|
|
|
|
|
|
<div class="train-grid-container">
|
|
|
|
<div class="grid-item text-end">date</div>
|
|
|
|
<div class="grid-item">route</div>
|
|
|
|
<div class="grid-item">depart</div>
|
|
|
|
<div class="grid-item">arrive</div>
|
2024-01-04 22:55:19 +00:00
|
|
|
<div class="grid-item">duration</div>
|
2023-11-19 15:22:12 +00:00
|
|
|
<div class="grid-item">operator</div>
|
|
|
|
<div class="grid-item">reference</div>
|
2024-01-14 18:16:20 +00:00
|
|
|
<div class="grid-item"></div>
|
2024-04-05 15:00:51 +01:00
|
|
|
<div class="grid-item"></div>
|
2024-04-17 11:40:13 +01:00
|
|
|
<div class="grid-item"></div>
|
2023-11-19 15:22:12 +00:00
|
|
|
|
2024-01-04 22:55:19 +00:00
|
|
|
{% for item in trains | sort(attribute="depart") %}
|
|
|
|
{{ train_row(item) }}
|
2023-11-19 15:22:12 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|