Commit ec798132 authored by Volker Krause's avatar Volker Krause

Add basic Grantlee template for train reservations

parent 91cc016a
......@@ -3,5 +3,6 @@
<file alias="semantic.html">templates/semantic.html</file>
<file alias="flightreservation.html">templates/flightreservation.html</file>
<file alias="lodgingreservation.html">templates/lodgingreservation.html</file>
<file alias="trainreservation.html">templates/trainreservation.html</file>
</qresource>
</RCC>
......@@ -7,6 +7,8 @@
{% include ":/org.kde.messageviewer/semantic/flightreservation.html" %}
{% elif item.className == "LodgingReservation" %}
{% include ":/org.kde.messageviewer/semantic/lodgingreservation.html" %}
{% elif item.className == "TrainReservation" %}
{% include ":/org.kde.messageviewer/semantic/trainreservation.html" %}
{% endif %}
{% if not forloop.last %}
<hr/>
......
<table style="width:100%;">
<tr>
<!-- TODO show platforms if available -->
<td style="font-size:120%; width:33;">{{ item.reservationFor.departureStation.name }}</td>
<td style="font-size:120%; width:33%; text-align:center;">&rarr;</td>
<td style="font-size:120%; width:33%;">{{ item.reservationFor.arrivalStation.name}}</td>
</tr>
<tr>
<td>{{ item.reservationFor.departureTimeLocalized }}</td>
<td style="white-space: nowrap; text-align:center;">{{ item.reservationFor.trainNumber }}</td>
<td>{{ item.reservationFor.arrivalTimeLocalized }}</td>
</tr>
</table>
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