... | ... |
@@ -1,35 +1,42 @@ |
1 | 1 |
{% extends '@Contao/frontend_module/_base.html.twig' %} |
2 | 2 |
|
3 | 3 |
{% block content %} |
4 |
- {% import "@ContaoCore/Image/Studio/_macros.html.twig" as studio %} |
|
4 |
+ {% import "@ContaoCore/Image/Studio/_macros.html.twig" as studio %} |
|
5 | 5 |
|
6 |
- {% if items is not defined or items is empty %} |
|
7 |
- <p class="alert alert-secondary">{{ 'MSC.re_empty'|trans({}, 'contao_default') }}</p> |
|
8 |
- {% else %} |
|
9 |
- <div class="assetList"> |
|
10 |
- {% for item in items %} |
|
11 |
- <div class="asset re_asset_card"> |
|
12 |
- {% if item.teaserFigure %} |
|
13 |
- {{- studio.figure(item.teaserFigure, { attr: { class: ('image_container ') }}) -}} |
|
14 |
- {% endif %} |
|
15 |
- <h4>{{ item.title }}</h4> |
|
16 |
- <div class="location"><div class="label"> |
|
17 |
- {% if item.livingSpace > 0 %} |
|
18 |
- {{ item.address }} |
|
19 |
- {% else %} |
|
20 |
- {{ item.city }} |
|
21 |
- {% endif %} |
|
22 |
- </div></div> |
|
23 |
- {% if item.livingSpace > 0 %} |
|
24 |
- <div class="livingSpace"><div class="label">{{ item.livingSpace|number_format(2, ',', '') }} m²</div></div> |
|
25 |
- {% else %} |
|
26 |
- <div class="addr"><div class="label">{{ item.address }}</div></div> |
|
27 |
- {% endif %} |
|
28 |
- {% if item.detailsUrl %} |
|
29 |
- <a class="link" href="{{ item.detailsUrl }}"></a> |
|
30 |
- {% endif %} |
|
6 |
+ {% if items is not defined or items is empty %} |
|
7 |
+ <p class="alert alert-secondary">{{ 'MSC.re_empty'|trans({}, 'contao_default') }}</p> |
|
8 |
+ {% else %} |
|
9 |
+ <div class="assetList"> |
|
10 |
+ {% for item in items %} |
|
11 |
+ <div class="asset re_asset_card"> |
|
12 |
+ {% if item.teaserFigure %} |
|
13 |
+ {{- studio.figure(item.teaserFigure, { attr: { class: ('image_container media') }}) -}} |
|
14 |
+ {% endif %} |
|
15 |
+ |
|
16 |
+ <div class="details"> |
|
17 |
+ <ul> |
|
18 |
+ <li> |
|
19 |
+ <span class="label">Adresse:</span> |
|
20 |
+ {% if item.address is not empty %}{{ item.address }}<br>{% endif %} |
|
21 |
+ {% if item.postal is not empty and item.city is not empty %}{{ item.postal }} {{ item.city }}<br>{% endif %} |
|
22 |
+ </li> |
|
23 |
+ {% if item.livingSpace > 0 %} |
|
24 |
+ <li> |
|
25 |
+ <span class="label">Wohnfläche:</span> |
|
26 |
+ {{ item.livingSpace|number_format(2, ',', '') }} m² |
|
27 |
+ </li> |
|
28 |
+ {% endif %} |
|
29 |
+ <li> |
|
30 |
+ <span class="label">Kaltmiete:</span> |
|
31 |
+ {% if item.coldRent is not empty %}{{ item.coldRent|number_format(2, ',', '') }} €{% endif %} |
|
32 |
+ </li> |
|
33 |
+ </ul> |
|
34 |
+ {% if item.detailsUrl %} |
|
35 |
+ <a class="link" href="{{ item.detailsUrl }}"></a> |
|
36 |
+ {% endif %} |
|
37 |
+ </div> |
|
38 |
+ </div> |
|
39 |
+ {% endfor %} |
|
31 | 40 |
</div> |
32 |
- {% endfor %} |
|
33 |
- </div> |
|
34 |
- {% endif %} |
|
41 |
+ {% endif %} |
|
35 | 42 |
{% endblock %} |