Commit ffed6eda authored by Volker Krause's avatar Volker Krause
Browse files

Bring bus tickets in line with train tickets regarding multiple travelers

parent 56de8dd4
Pipeline #81785 passed with stage
in 54 minutes and 27 seconds
......@@ -35,7 +35,7 @@
</tr>
<tr><td colspan="3">
<div style="float:left">
{% if elem.reservations.0.ticketToken %}
{% if elem.reservations.0.ticketToken or elem.reservations.size > 1 %}
<a href="x-kmail:/bodypart/0//semanticExpand?{{ forloop.counter0 }}">
{% if elem.state.expanded %}
<img src="{{ style.collapseIcon }}" style="margin-right: 4px;"/>
......@@ -54,9 +54,31 @@
</table>
{% if elem.state.expanded %}
<div style="text-align:center;">
<div style="background-color: #ffffff; display: inline-block; padding: 4px;">
<img src="{{ elem.reservations.0.ticketToken }}"/>
{% for d in elem.reservations %}
{% with d.reservation as res %}
<div>
{% if res.underName.name %}
{{ res.underName.name }}
{% endif %}
{% if res.reservedTicket.name %}
({{ res.reservedTicket.name }})
{% endif %}
</div>
<div>
{% if res.reservedTicket.ticketedSeat.seatNumber %}
{% i18n "Seat: %1" res.reservedTicket.ticketedSeat.seatNumber %}
{% endif %}
</div>
</div>
{% if d.ticketToken %}
<div style="text-align:center;">
<div style="background-color: #ffffff; display: inline-block; padding: 4px;">
<img src="{{ d.ticketToken }}"/>
</div>
</div>
{% endif %}
{% if elem.reservations.size > 1 %}
{% include "org.kde.messageviewer/itinerary/actions.html" %}
{% endif %}
{% endwith %}
{% endfor %}
{% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment