2022-09-03 21:38:46 +01:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Ferries to France</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
|
2023-01-08 11:49:57 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background: black;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.table { color: white; }
|
|
|
|
|
|
|
|
a:link {
|
|
|
|
color: rgb(127, 127, 255);
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-09-03 21:38:46 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="m-3">
|
|
|
|
|
2023-01-08 12:22:36 +00:00
|
|
|
<h1>{{ port_lookup[departure_port].title() }}
|
|
|
|
to {{ port_lookup[arrival_port].title() }}</h1>
|
2022-09-03 21:38:46 +01:00
|
|
|
|
2023-01-08 12:22:36 +00:00
|
|
|
<p>{{ departure_date.strftime("%A, %d %B %Y %H:%M UTC") }} {{ ticket_tier }}</p>
|
2022-09-03 21:38:46 +01:00
|
|
|
|
2023-04-16 19:56:26 +01:00
|
|
|
<p><a href="{{ url_for(section + "_page") }}">back to sailings</a></p>
|
|
|
|
|
2023-01-08 11:49:57 +00:00
|
|
|
<table class="table w-auto">
|
2022-09-03 21:38:46 +01:00
|
|
|
<tr>
|
|
|
|
<th>code</th>
|
|
|
|
<th>description</th>
|
2023-01-08 11:49:57 +00:00
|
|
|
<th>births</th>
|
|
|
|
<th>quantity<br/>available</th>
|
2023-08-10 14:05:07 +01:00
|
|
|
<th class="text-end">cabin<br/>price</th>
|
|
|
|
<th class="text-end">total<br/>price</th>
|
2022-09-03 21:38:46 +01:00
|
|
|
</tr>
|
|
|
|
{% for a in accommodations if a.quantityAvailable > 0 %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ a.code }}</td>
|
|
|
|
<td>{{ a.description }}</td>
|
|
|
|
<td>{{ a.maxAdults }}</td>
|
2023-01-08 11:49:57 +00:00
|
|
|
<td>
|
|
|
|
{% if a.quantityAvailable == 10 %}
|
|
|
|
10+
|
|
|
|
{% else %}
|
|
|
|
{{ a.quantityAvailable }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2023-04-16 19:56:26 +01:00
|
|
|
<td class="text-end">£{{ a.unitCost.amount }}</td>
|
2023-08-10 14:05:07 +01:00
|
|
|
<td class="text-end">£{{ a.unitCost.amount + crossing.flexiPrice.amount }}</td>
|
2022-09-03 21:38:46 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2023-08-10 14:05:07 +01:00
|
|
|
{% if pet_accommodations %}
|
2023-01-08 11:49:57 +00:00
|
|
|
<h4>Pet accommodations</h4>
|
|
|
|
|
2023-01-08 11:54:53 +00:00
|
|
|
{% set pets = {"G": "stay in car", "B": "large kennel", "K": "small kennel" } %}
|
2023-01-08 11:49:57 +00:00
|
|
|
|
2023-01-08 11:54:53 +00:00
|
|
|
<ul>
|
|
|
|
{% for i in pet_accommodations if i.quantityAvailable and i.quantityAvailable > 0 %}
|
|
|
|
<li>{{ pets[i.code] }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2023-01-08 11:49:57 +00:00
|
|
|
|
2023-08-10 14:05:07 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2023-04-16 19:56:26 +01:00
|
|
|
<h4>Sailing</h4>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>sailing ID: {{ crossing.sailingId }}</li>
|
|
|
|
<li>depart: {{ crossing.departureDateTime.time }}</li>
|
|
|
|
<li>arrive: {{ crossing.arrivalDateTime.time }}</li>
|
|
|
|
<li>duration: {{ get_duration(crossing.departureDateTime.time, crossing.arrivalDateTime.time, time_delta) }}</li>
|
|
|
|
<li>ship: {{ crossing.shipName }}</li>
|
|
|
|
<li>economy price: £{{ crossing.economyPrice.amount }}</li>
|
|
|
|
<li>standard price: £{{ crossing.standardPrice.amount }}</li>
|
|
|
|
<li>flexi price: £{{ crossing.flexiPrice.amount }}</li>
|
|
|
|
</ul>
|
|
|
|
|
2022-09-03 21:38:46 +01:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|