|
1 | 1 | <summary class="o-expander__summary o-expander__summary--train-category"> |
2 | 2 | <div class="o-train-category__header"> |
3 | | - <div class="o-train-category__header-content"> |
4 | | - <div class="o-train-category__title-wrapper"> |
5 | | - <div class="o-train-category__title"> |
6 | | - {{- partial "icon" "train" -}} |
7 | | - <span class="o-train-category__title-text">{{- .title -}}</span> |
8 | | - </div> |
9 | | - </div> |
10 | | - <div class="o-train-category__tags"> |
11 | | - {{- if eq .fip_accepted true -}} |
12 | | - <span class="o-train-category__tag o-train-category__tag--success"> |
13 | | - {{ partial "icon" "check_circle" }} |
14 | | - FIP Accepted |
15 | | - </span> |
16 | | - {{- else if eq .fip_accepted "partially" -}} |
17 | | - <span class="o-train-category__tag o-train-category__tag--warning"> |
18 | | - {{ partial "icon" "info" }} |
19 | | - FIP Partially Accepted |
20 | | - </span> |
21 | | - {{- else -}} |
22 | | - <span class="o-train-category__tag o-train-category__tag--error"> |
23 | | - {{ partial "icon" "dangerous" }} |
24 | | - FIP Not Accepted |
25 | | - </span> |
26 | | - {{- end -}} |
| 3 | + <div class="o-train-category__title"> |
| 4 | + {{- partial "icon" "train" -}} |
| 5 | + <span class="o-train-category__title-text">{{- .title -}}</span> |
| 6 | + </div> |
| 7 | + <div class="o-train-category__tags"> |
| 8 | + {{- if eq .fip_accepted true -}} |
| 9 | + <span class="o-train-category__tag o-train-category__tag--success"> |
| 10 | + {{ partial "icon" "check_circle" }} |
| 11 | + FIP Accepted |
| 12 | + </span> |
| 13 | + {{- else if eq .fip_accepted "partially" -}} |
| 14 | + <span class="o-train-category__tag o-train-category__tag--warning"> |
| 15 | + {{ partial "icon" "info" }} |
| 16 | + FIP Partially Accepted |
| 17 | + </span> |
| 18 | + {{- else -}} |
| 19 | + <span class="o-train-category__tag o-train-category__tag--error"> |
| 20 | + {{ partial "icon" "dangerous" }} |
| 21 | + FIP Not Accepted |
| 22 | + </span> |
| 23 | + {{- end -}} |
27 | 24 |
|
28 | | - {{- if eq .reservation_required true -}} |
29 | | - <span class="o-train-category__tag o-train-category__tag--error"> |
30 | | - {{ partial "icon" "calendar_add_on" }} |
31 | | - Reservation Required |
32 | | - </span> |
33 | | - {{- else if eq .reservation_required true -}} |
34 | | - <span class="o-train-category__tag o-train-category__tag--warning"> |
35 | | - {{ partial "icon" "calendar_add_on" }} |
36 | | - Reservation Partially Required |
37 | | - </span> |
38 | | - {{- else if eq .reservation_possible true -}} |
39 | | - <span class="o-train-category__tag o-train-category__tag--info"> |
40 | | - {{ partial "icon" "calendar_check" }} |
41 | | - Reservation Possible |
42 | | - </span> |
43 | | - {{- else -}} |
44 | | - <span class="o-train-category__tag o-train-category__tag--info"> |
45 | | - {{ partial "icon" "calendar_lock" }} |
46 | | - No Reservation Possible |
47 | | - </span> |
48 | | - {{- end -}} |
| 25 | + {{- if eq .reservation_required true -}} |
| 26 | + <span class="o-train-category__tag o-train-category__tag--error"> |
| 27 | + {{ partial "icon" "calendar_add_on" }} |
| 28 | + Reservation Required |
| 29 | + </span> |
| 30 | + {{- else if eq .reservation_required true -}} |
| 31 | + <span class="o-train-category__tag o-train-category__tag--warning"> |
| 32 | + {{ partial "icon" "calendar_add_on" }} |
| 33 | + Reservation Partially Required |
| 34 | + </span> |
| 35 | + {{- else if eq .reservation_possible true -}} |
| 36 | + <span class="o-train-category__tag o-train-category__tag--info"> |
| 37 | + {{ partial "icon" "calendar_check" }} |
| 38 | + Reservation Possible |
| 39 | + </span> |
| 40 | + {{- else -}} |
| 41 | + <span class="o-train-category__tag o-train-category__tag--info"> |
| 42 | + {{ partial "icon" "calendar_lock" }} |
| 43 | + No Reservation Possible |
| 44 | + </span> |
| 45 | + {{- end -}} |
49 | 46 |
|
50 | | - {{- if .risk_of_confusion -}} |
51 | | - <span class="o-train-category__tag o-train-category__tag--warning"> |
52 | | - {{ partial "icon" "question_exchange" }} |
53 | | - Risk of confusion |
54 | | - </span> |
55 | | - {{- end -}} |
| 47 | + {{- if .risk_of_confusion -}} |
| 48 | + <span class="o-train-category__tag o-train-category__tag--warning"> |
| 49 | + {{ partial "icon" "question_exchange" }} |
| 50 | + Risk of confusion |
| 51 | + </span> |
| 52 | + {{- end -}} |
56 | 53 |
|
57 | | - {{- if .important_info -}} |
58 | | - <span class="o-train-category__tag o-train-category__tag--warning"> |
59 | | - {{ partial "icon" "campaign" }} |
60 | | - Important information |
61 | | - </span> |
62 | | - {{- end -}} |
63 | | - </div> |
| 54 | + {{- if .important_info -}} |
| 55 | + <span class="o-train-category__tag o-train-category__tag--warning"> |
| 56 | + {{ partial "icon" "campaign" }} |
| 57 | + Important information |
| 58 | + </span> |
| 59 | + {{- end -}} |
64 | 60 | </div> |
65 | 61 | </div> |
66 | 62 | {{- partial "icon" "keyboard_arrow_down" -}} |
67 | 63 | </summary> |
68 | 64 | <hr aria-hidden="true" /> |
69 | 65 | <div class="o-expander__content"> |
70 | | - {{- if .content -}} |
71 | | - <div class="o-train-category__content"> |
72 | | - {{- .content -}} |
73 | | - </div> |
74 | | - {{- end -}} |
75 | | - {{- if not (eq .fip_accepted true) -}} |
76 | | - <span>FIP is not accepted for this train category!</span> |
77 | | - {{- end -}} |
| 66 | + {{- .content -}} |
78 | 67 | </div> |
0 commit comments