Skip to content

Commit 67eb974

Browse files
committed
fix: Change back to old style booking expanders
1 parent 3962ebd commit 67eb974

File tree

5 files changed

+15
-68
lines changed

5 files changed

+15
-68
lines changed

assets/sass/booking.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@
7373
flex-direction: column;
7474
align-items: center;
7575
justify-content: center;
76-
gap: 0.6rem;
77-
font-size: 1.1em;
7876

7977
@media (max-width: #{$breakpoint-md}) {
8078
align-items: flex-start;

i18n/de.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,9 @@ booking:
99
second: 2. Klasse
1010
fee: Buchungsgebühr
1111
fip-50: FIP 50 Fahrkarten
12-
fip-50-bookable: FIP 50 Fahrkarten buchbar
13-
fip-50-not-bookable: FIP 50 Fahrkarten nicht buchbar
1412
fip-global-fare: FIP Globalpreis
15-
fip-global-fare-bookable: FIP Globalpreis buchbar
16-
fip-global-fare-not-bookable: FIP Globalpreis nicht buchbar
1713
reservation: Reservierung
18-
reservation-bookable: Reservierung buchbar
1914
reservation-costs: Reservierungskosten
20-
reservation-not-bookable: Reservierung nicht buchbar
2115
visit-additional-information-website: Weitere Informationen
2216
visit-booking-website: Zur Buchungsseite
2317
contentNavigation:

i18n/en.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@ booking:
88
second: 2nd Class
99
fee: Booking Fee
1010
fip-50: FIP 50 Tickets
11-
fip-50-bookable: FIP 50 Tickets bookable
12-
fip-50-not-bookable: FIP 50 Tickets not bookable
1311
fip-global-fare: FIP Global Fare
14-
fip-global-fare-bookable: FIP Global Fare bookable
15-
fip-global-fare-not-bookable: FIP Global Fare not bookable
1612
reservation: Reservation
17-
reservation-bookable: Reservation bookable
1813
reservation-costs: Reservation Costs
19-
reservation-not-bookable: Reservation not bookable
2014
visit-additional-information-website: Additional Information
2115
visit-booking-website: To Booking Website
2216
contentNavigation:

i18n/fr.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@ booking:
88
second: 2nd classe
99
fee: Frais de réservation
1010
fip-50: Billets FIP 50
11-
fip-50-bookable: Billets FIP 50 réservables
12-
fip-50-not-bookable: Billets FIP 50 non réservables
1311
fip-global-fare: Tarif Global FIP
14-
fip-global-fare-bookable: Tarif Global FIP réservable
15-
fip-global-fare-not-bookable: Tarif Global FIP non réservable
1612
reservation: Réservation
17-
reservation-bookable: Réservation réservable
1813
reservation-costs: Frais de réservation
19-
reservation-not-bookable: Réservation non réservable
2014
visit-additional-information-website: Informations complémentaires
2115
visit-booking-website: Aller sur le site de réservation
2216
contentNavigation:

layouts/partials/booking.html

Lines changed: 15 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,56 +14,23 @@
1414
{{- end }}
1515
</div>
1616
<div class="o-booking__meta">
17-
{{- if eq .reservations true -}}
18-
{{- partial "tag" (
19-
dict
20-
"Icon" "confirmation_number"
21-
"Text" "booking.reservation-bookable"
22-
"Type" "success"
23-
)
24-
-}}
25-
{{ else if eq .reservations false -}}
26-
{{- partial "tag" (
27-
dict
28-
"Icon" "credit_card_off"
29-
"Text" "booking.reservation-not-bookable"
30-
"Type" "error"
31-
)
32-
-}}
17+
{{- if ne .reservations "nil" -}}
18+
<div>
19+
{{- T "booking.reservation" }}
20+
{{ if .reservations -}}✅{{- else -}}⛔{{- end -}}
21+
</div>
3322
{{- end -}}
34-
{{- if eq .fip_50 true -}}
35-
{{- partial "tag" (
36-
dict
37-
"Icon" "confirmation_number"
38-
"Text" "booking.fip-50-bookable"
39-
"Type" "success"
40-
)
41-
-}}
42-
{{ else if eq .fip_50 false -}}
43-
{{- partial "tag" (
44-
dict
45-
"Icon" "credit_card_off"
46-
"Text" "booking.fip-50-not-bookable"
47-
"Type" "error"
48-
)
49-
-}}
23+
{{- if ne .fip_50 "nil" -}}
24+
<div>
25+
{{- T "booking.fip-50" }}
26+
{{ if .fip_50 -}}✅{{- else -}}⛔{{- end -}}
27+
</div>
5028
{{- end -}}
51-
{{- if eq .fip_global_fare true -}}
52-
{{- partial "tag" (
53-
dict
54-
"Icon" "confirmation_number"
55-
"Text" "booking.fip-global-fare-bookable"
56-
"Type" "success"
57-
)
58-
-}}
59-
{{ else if eq .fip_global_fare false -}}
60-
{{- partial "tag" (
61-
dict
62-
"Icon" "credit_card_off"
63-
"Text" "booking.fip-global-fare-not-bookable"
64-
"Type" "error"
65-
)
66-
-}}
29+
{{- if ne .fip_global_fare "nil" -}}
30+
<div>
31+
{{- T "booking.fip-global-fare" }}
32+
{{ if .fip_global_fare -}}✅{{- else -}}⛔{{- end -}}
33+
</div>
6734
{{- end -}}
6835
</div>
6936
<div class="o-booking__classes">

0 commit comments

Comments
 (0)