feat: flip region and additional info in accommodation offer view
This commit is contained in:
@@ -165,6 +165,18 @@
|
||||
{{ macros.imageGallery(ctx.hotelCmsData.images.resized.l, ctx.hotelCmsData.images.resized.m, ctx.accommodation.name) }}
|
||||
{% endif %}
|
||||
|
||||
{# additional information #}
|
||||
{% if ctx.hotelCmsData is not null and ctx.hotelCmsData.additionalInformation|striptags|trim is not empty %}
|
||||
{% embed '_partials/_collapsible.html.twig' with {
|
||||
heading: 'Zusatzinformationen',
|
||||
id: 'additional-information',
|
||||
} %}
|
||||
{% block body %}
|
||||
{{ ctx.hotelCmsData.additionalInformation | raw }}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
{% endif %}
|
||||
|
||||
{# region description #}
|
||||
{% if ctx.hotelCmsData is not null and ctx.hotelCmsData.region is not null %}
|
||||
{% set region = ctx.hotelCmsData.region %}
|
||||
@@ -212,18 +224,6 @@
|
||||
{{ macros.imageGallery(region.images.resized.l ?? [], region.images.resized.m ?? [], region.name) }}
|
||||
{% endif %}
|
||||
|
||||
{# additional information #}
|
||||
{% if ctx.hotelCmsData is not null and ctx.hotelCmsData.additionalInformation|striptags|trim is not empty %}
|
||||
{% embed '_partials/_collapsible.html.twig' with {
|
||||
heading: 'Zusatzinformationen',
|
||||
id: 'additional-information',
|
||||
} %}
|
||||
{% block body %}
|
||||
{{ ctx.hotelCmsData.additionalInformation | raw }}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user