This commit is contained in:
Edward Betts 2023-04-16 19:56:26 +01:00
parent c26383c9c0
commit a5195cba1a
7 changed files with 263 additions and 71 deletions

View file

@ -30,12 +30,18 @@ a:link {
<body>
<div class="m-3">
<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 17 March 2022</p>
<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 5 May 2022</p>
{#
<p><a href="{{ url_for(other + "_page") }}">{{ other }}</a></p>
#}
<ul>
<li><a href="?adults=2&small_dogs=1">2 adults and a dog</a></li>
<li><a href="?adults=2&small_dogs=0">2 adults</a></li>
<li><a href="?adults=1&small_dogs=0">1 adult</a></li>
</ul>
{% if extra_routes %}
<ul>
{% for dep, arr in extra_routes %}

View file

@ -34,13 +34,15 @@ a:link {
<p>{{ departure_date.strftime("%A, %d %B %Y %H:%M UTC") }} {{ ticket_tier }}</p>
<p><a href="{{ url_for(section + "_page") }}">back to sailings</a></p>
<table class="table w-auto">
<tr>
<th>code</th>
<th>description</th>
<th>births</th>
<th>quantity<br/>available</th>
<th>price</th>
<th class="text-end">price</th>
</tr>
{% for a in accommodations if a.quantityAvailable > 0 %}
<tr>
@ -54,7 +56,7 @@ a:link {
{{ a.quantityAvailable }}
{% endif %}
</td>
<td>£{{ a.unitCost.amount }}</td>
<td class="text-end">£{{ a.unitCost.amount }}</td>
</tr>
{% endfor %}
</table>
@ -69,6 +71,19 @@ a:link {
{% endfor %}
</ul>
<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>
</div>
</body>
</html>

View file

@ -11,9 +11,10 @@
<div class="m-3">
<ul>
<li><a href="{{ url_for("outbound1_page") }}">Outbound: 10 March</a>
<li><a href="{{ url_for("outbound2_page") }}">Outbound: 17 March</a>
<li><a href="{{ url_for("return_page") }}">Return: 24 March</a>
<li><a href="{{ url_for("outbound1_page") }}">Outbound: 5 May</a>
<li><a href="{{ url_for("return1_page") }}">Return: 12 May</a>
<li><a href="{{ url_for("outbound3_page") }}">Outbound: 29 September</a>
<li><a href="{{ url_for("return2_page") }}">Return: 6 October</a>
</ul>
</div>

View file

@ -39,9 +39,13 @@
{{ crossing.shipName }}
</td>
<td class="text-nowrap">
{% if crossing.economyPrice %}
<a href="{{ cabins_url(dep, arr, crossing, "ECONOMY") }}">
£{{ crossing.economyPrice.amount }}
</a>
{% else %}
n/a
{% endif %}
</td>
<td class="text-nowrap">
<a href="{{ cabins_url(dep, arr, crossing, "STANDARD") }}">
@ -53,9 +57,11 @@
£{{ crossing.flexiPrice.amount }}
</a>
</td>
{% if crossing.petAvailabilities %}
<td>
{{ format_pet_options(crossing.petAvailabilities) | join(", ") }}
</td>
{% endif %}
<td class="text-nowrap">
{% if crossing.full %}full |{% endif %}
{% if crossing.isCabinSpaceFull %}no cabin space |{% endif %}

View file

@ -7,9 +7,9 @@
{% block content %}
<div class="p-2">
<h1>Software error: {{ tb.exception_type }}</h1>
<h1>Software error: {{ exception_type }}</h1>
<div>
<pre>{{ tb.exception }}</pre>
<pre>{{ exception }}</pre>
</div>
{% set body %}
@ -19,10 +19,12 @@ URL: {{ request.url }}
{% endset %}
<h2 class="traceback">Traceback <em>(most recent call last)</em></h2>
{{ tb.render_summary(include_title=False) | safe }}
{{ summary | safe }}
{#
<p>Error in function "{{ last_frame.function_name }}": {{ last_frame_args | pprint }}</p>
<pre>{{ last_frame.locals | pprint }}</pre>
#}
</div>
{% endblock %}