diff --git a/assets/images/icons.svg b/assets/images/icons.svg
index 0dbe931..0861f14 100644
--- a/assets/images/icons.svg
+++ b/assets/images/icons.svg
@@ -79,7 +79,7 @@
-
+
@@ -87,8 +87,8 @@
-
-
+
+
diff --git a/templates/groups/booking/offer.html.twig b/templates/groups/booking/offer.html.twig
index fdd2922..c03032b 100644
--- a/templates/groups/booking/offer.html.twig
+++ b/templates/groups/booking/offer.html.twig
@@ -108,21 +108,43 @@
data-toggle-target="icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 256 256">
-
-
+
+
{% set icons = ctx.hotelCmsData.icons %}
+ {% set iconMap = {
+ bedsCount: { icon: 'bed', label: 'Anzahl Betten' },
+ parkingCount: { icon: 'parking', label: 'Anzahl Parkplätze' },
+ altitude: { icon: 'mountain', label: 'Höhe' },
+ partyroom: { icon: 'party', label: 'Partyraum' },
+ gamesroom: { icon: 'dice', label: 'Spieleraum' },
+ distanceBus: { icon: 'bus', label: 'Entfernung Bus' },
+ distanceLift: { icon: 'lift', label: 'Entfernung Lifte' },
+ sauna: { icon: 'sauna', label: 'Sauna' },
+ shower: { icon: 'shower', label: 'Dusche' },
+ wifi: { icon: 'wifi', label: 'WiFi' },
+ } %}
{% if icons is not empty %}
- {% for icon, label in icons %}
+ {% for key, value in icons %}
+ {% set mapping = iconMap[key] ?? null %}
+ {% set isBool = value is same as(true) or value is same as(false) %}
-
-
- {{ icon(icon, 'w-8 h-8 shrink-0 text-gray-900') }}
+
+ {% if mapping %}
+ {{ icon(mapping.icon, 'w-8 h-8 shrink-0 text-gray-900') }}
+ {% endif %}
+
+
+ {% if isBool %}
+ {{ mapping ? mapping.label : '' }}
+ {% else %}
+ {{ mapping ? mapping.label ~ ': ' ~ value : value }}
+ {% endif %}
- {{ label }}
{% endfor %}
@@ -130,20 +152,26 @@
{{ ctx.hotelCmsData.description | raw }}
-
- Details zur Unterkunft
-
- {{ ctx.hotelCmsData.features | raw }}
+ {% if ctx.hotelCmsData.features|striptags|trim is not empty %}
+
+ Details zur Unterkunft
+
+ {{ ctx.hotelCmsData.features | raw }}
+ {% endif %}
-
- Die Zimmer
-
- {{ ctx.hotelCmsData.roomTypes | raw }}
+ {% if ctx.hotelCmsData.roomTypes|striptags|trim is not empty %}
+
+ Die Zimmer
+
+ {{ ctx.hotelCmsData.roomTypes | raw }}
+ {% endif %}
-
- Weitere Infos
-
- {{ ctx.hotelCmsData.additionalInformation | raw }}
+ {% if ctx.hotelCmsData.additionalInformation|striptags|trim is not empty %}
+
+ Weitere Infos
+
+ {{ ctx.hotelCmsData.additionalInformation | raw }}
+ {% endif %}
@@ -164,8 +192,8 @@
data-toggle-target="icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 256 256">
-