brittany-ferries/templates/all_routes.html

84 lines
2.1 KiB
HTML
Raw Normal View History

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>
{% from "individual_route.html" import route_table with context %}
<body>
<div class="m-3">
2023-08-10 14:05:07 +01:00
<p>{{ days_until_start }} days / {{ (days_until_start / 7) | int }} weeks / {{ "{:.1f}".format(days_until_start / 30.5) }} months until start of Dodainville week: Friday 29 Sept 2023</p>
2022-09-03 21:38:46 +01:00
2023-01-08 11:49:57 +00:00
{#
2022-09-03 21:38:46 +01:00
<p><a href="{{ url_for(other + "_page") }}">{{ other }}</a></p>
2023-01-08 11:49:57 +00:00
#}
2022-09-03 21:38:46 +01:00
2023-09-11 07:00:20 +01:00
<p>
Passengers:
{% for o in pax_options %}
{% if o.pax == pax %}
<strong>{{ o.label }}</strong>
{% else %}
<a href="?adults={{ o.pax.adults}}&small_dogs={{ o.pax.small_dogs }}">{{ o.label }}</a>
{% endif %}
{% if not loop.last %}|{% endif %}
{% endfor %}
</p>
{% if rear_mounted_bike_carrier %}
<p>Bike carrier: <strong>yes</strong> | <a href="{{ url_for(request.endpoint) }}">no</a></p>
{% else %}
<p>Bike carrier:
<a href="{{ url_for(request.endpoint, rear_mounted_bike_carrier='true') }}">yes</a>
|
<strong>no</strong>
</p>
{% endif %}
2023-04-16 19:56:26 +01:00
2022-09-03 21:38:46 +01:00
{% if extra_routes %}
<ul>
{% for dep, arr in extra_routes %}
<li><a href="{{ url_for("show_route", departure_port=ports[dep], arrival_port=ports[arr], from_date=from_date, to_date=to_date) }}">{{ dep }} - {{ arr }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% for dep, arr, days in data %}
<h4>{{ dep.title() }} to {{ arr.title() }}</h4>
2023-08-10 14:05:07 +01:00
{% if days %}
{{ route_table(dep, arr, days) }}
{% else %}
<p>not available</p>
{% endif %}
2022-09-03 21:38:46 +01:00
{% endfor %}
2023-01-08 11:49:57 +00:00
<!--
{{ data | pprint | safe }}
-->
2022-09-03 21:38:46 +01:00
</div>
</body>
</html>