Differential D11397 Diff 29706 plugins/messageviewer/bodypartformatter/semantic/templates/busreservation.html
Changeset View
Changeset View
Standalone View
Standalone View
plugins/messageviewer/bodypartformatter/semantic/templates/busreservation.html
- This file was added.
1 | <table style="width:100%;"> | ||||
---|---|---|---|---|---|
2 | <tr> | ||||
3 | <td style="font-size:120%; width:33;"> | ||||
4 | {{ item.reservationFor.departureStation.name }} | ||||
5 | {% if item.reservationFor.departurePlatform %} | ||||
6 | [{{ item.reservationFor.departurePlatform }}] | ||||
7 | {% endif %} | ||||
8 | </td> | ||||
9 | <td style="font-size:120%; width:33%; text-align:center;">→</td> | ||||
10 | <td style="font-size:120%; width:33%;"> | ||||
11 | {{ item.reservationFor.arrivalStation.name}} | ||||
12 | {% if item.reservationFor.arrivalPlatform %} | ||||
13 | [{{ item.reservationFor.arrivalPlatform }}] | ||||
14 | {% endif %} | ||||
15 | </td> | ||||
16 | </tr> | ||||
17 | <tr> | ||||
18 | <td>{{ item.reservationFor.departureTimeLocalized }}</td> | ||||
19 | <td style="white-space: nowrap; text-align:center;"> | ||||
20 | {% if item.reservationFor.busName and item.reservationiFor.busNumber %} | ||||
21 | {{ item.reservationFor.busName }} <br> {{ item.reservationFor.busNumber }} | ||||
22 | {% else %} | ||||
23 | {{ item.reservationFor.busName }} {{ item.reservationFor.busNumber }} | ||||
24 | {% endif %} | ||||
25 | </td> | ||||
26 | <td>{{ item.reservationFor.arrivalTimeLocalized }}</td> | ||||
27 | </tr> | ||||
28 | <tr><td colspan="3"> | ||||
29 | <div style="float:left"> | ||||
30 | {% if elem.ticketToken %} | ||||
31 | <a href="x-kmail:/bodypart/0//semanticExpand?{{ forloop.counter0 }}"> | ||||
32 | {% if elem.state.expanded %} | ||||
33 | <img src="{{ style.collapseIcon }}" style="margin-right: 4px;"/> | ||||
34 | {% else %} | ||||
35 | <img src="{{ style.expandIcon }}" style="margin-right: 4px;"/> | ||||
36 | {% endif %} | ||||
37 | </a> | ||||
38 | {% endif %} | ||||
39 | | ||||
40 | {% if item.reservedTicket.ticketedSeat.seatNumber %} | ||||
41 | {% i18n "Seat: %1" item.reservedTicket.ticketedSeat.seatNumber %} | ||||
42 | {% endif %} | ||||
43 | </div> | ||||
44 | | ||||
45 | <div style="float:right"> | ||||
46 | {% if item.url %} | ||||
47 | <a href="{{ item.url }}"/>{% i18n "View" %}</a> | ||||
48 | {% if item.modifyReservationUrl or item.cancelReservationUrl %}|{% endif %} | ||||
49 | {% endif %} | ||||
50 | | ||||
51 | {% if item.modifyReservationUrl %} | ||||
52 | <a href="{{ item.modifyReservationUrl }}"/>{% i18n "Modify" %}</a> | ||||
53 | {% if item.cancelReservationUrl %}|{% endif %} | ||||
54 | {% endif %} | ||||
55 | | ||||
56 | {% if item.cancelReservationUrl %} | ||||
57 | <a href="{{ item.cancelReservationUrl }}"/>{% i18n "Cancel" %}</a> | ||||
58 | {% endif %} | ||||
59 | </div> | ||||
60 | | ||||
61 | </td></tr> | ||||
62 | </table> | ||||
63 | | ||||
64 | {% if elem.state.expanded %} | ||||
65 | <div style="text-align:center;"> | ||||
66 | <div style="background-color: #ffffff; display: inline-block; padding: 4px;"> | ||||
67 | <img src="{{ elem.ticketToken }}"/> | ||||
68 | </div> | ||||
69 | </div> | ||||
70 | {% endif %} |