... | ... |
@@ -5,46 +5,70 @@ |
5 | 5 |
{% if groups is not defined or groups is empty %} |
6 | 6 |
<p class="alert alert-secondary">{{ 'MSC.re_empty'|trans({}, 'contao_default') }}</p> |
7 | 7 |
{% else %} |
8 |
- {% for group in groups %} |
|
9 |
- {% block group %} |
|
10 |
- {% if data.vr_re_grouped is defined and data.vr_re_grouped == '1' %} |
|
11 |
- <h3>{{ group.label }}</h3> |
|
12 |
- {% endif %} |
|
13 |
- <div class="assetList"> |
|
14 |
- {% for item in group.items %} |
|
15 |
- {% block item %} |
|
16 |
- <div class="asset re_asset_card"> |
|
17 |
- {% if item.teaserFigure %} |
|
18 |
- {{- studio.figure(item.teaserFigure, { attr: { class: ('image_container media') }}) -}} |
|
19 |
- {% endif %} |
|
8 |
+ {% block filter %} |
|
9 |
+ <div class="-padding content-background-wrapper"> |
|
10 |
+ <div class="content-background-wrapper-bg"> |
|
11 |
+ </div> |
|
12 |
+ |
|
13 |
+ <div class="content-background-wrapper-fg"> |
|
14 |
+ <div class="content-grid"> |
|
15 |
+ <div class="fragments"> |
|
16 |
+ <form class="assets-list-filter" hx-get="{{ pageUrl is defined ? pageUrl : '' }}" hx-push-url="true" hx-headers='{"VR-Ajax": "ReAssetsList"}' hx-trigger="change, submit" hx-target="closest .assets-list-wrapper" class="filter"> |
|
17 |
+ <div class="filter-wrapper"> |
|
18 |
+ <select name="filter_zimmer"> |
|
19 |
+ <option value="">Anzahl Zimmer</option> |
|
20 |
+ </select> |
|
21 |
+ </div> |
|
22 |
+ </form> |
|
23 |
+ </div> |
|
24 |
+ </div> |
|
25 |
+ </div> |
|
26 |
+ </div> |
|
27 |
+ |
|
28 |
+ {% endblock %} |
|
20 | 29 |
|
21 |
- <div class="details"> |
|
22 |
- <ul> |
|
23 |
- <li> |
|
24 |
- <span class="label">Adresse:</span> |
|
25 |
- {% if item.address is not empty %}{{ item.address }}<br>{% endif %} |
|
26 |
- {% if item.postal is not empty and item.city is not empty %}{{ item.postal }} {{ item.city }}<br>{% endif %} |
|
27 |
- </li> |
|
28 |
- {% if item.livingSpace > 0 %} |
|
30 |
+ <div class="assets-list-wrapper"> |
|
31 |
+ {% for group in groups %} |
|
32 |
+ {% block group %} |
|
33 |
+ {% if data.vr_re_grouped is defined and data.vr_re_grouped == '1' %} |
|
34 |
+ <h3>{{ group.label }}</h3> |
|
35 |
+ {% endif %} |
|
36 |
+ <div class="assetList"> |
|
37 |
+ {% for item in group.items %} |
|
38 |
+ {% block item %} |
|
39 |
+ <div class="asset re_asset_card"> |
|
40 |
+ {% if item.teaserFigure %} |
|
41 |
+ {{- studio.figure(item.teaserFigure, { attr: { class: ('image_container media') }}) -}} |
|
42 |
+ {% endif %} |
|
43 |
+ |
|
44 |
+ <div class="details"> |
|
45 |
+ <ul> |
|
46 |
+ <li> |
|
47 |
+ <span class="label">Adresse:</span> |
|
48 |
+ {% if item.address is not empty %}{{ item.address }}<br>{% endif %} |
|
49 |
+ {% if item.postal is not empty and item.city is not empty %}{{ item.postal }} {{ item.city }}<br>{% endif %} |
|
50 |
+ </li> |
|
51 |
+ {% if item.livingSpace > 0 %} |
|
52 |
+ <li> |
|
53 |
+ <span class="label">Wohnfläche:</span> |
|
54 |
+ {{ item.livingSpace|number_format(2, ',', '') }} m² |
|
55 |
+ </li> |
|
56 |
+ {% endif %} |
|
29 | 57 |
<li> |
30 |
- <span class="label">Wohnfläche:</span> |
|
31 |
- {{ item.livingSpace|number_format(2, ',', '') }} m² |
|
58 |
+ <span class="label">Kaltmiete:</span> |
|
59 |
+ {% if item.coldRent is not empty %}{{ item.coldRent|number_format(2, ',', '') }} €{% endif %} |
|
32 | 60 |
</li> |
61 |
+ </ul> |
|
62 |
+ {% if item.detailsUrl %} |
|
63 |
+ <p class="details-link"><a class="link" href="{{ item.detailsUrl }}">{{ 'MSC.more'|trans({}, 'contao_default') }}</a></p> |
|
33 | 64 |
{% endif %} |
34 |
- <li> |
|
35 |
- <span class="label">Kaltmiete:</span> |
|
36 |
- {% if item.coldRent is not empty %}{{ item.coldRent|number_format(2, ',', '') }} €{% endif %} |
|
37 |
- </li> |
|
38 |
- </ul> |
|
39 |
- {% if item.detailsUrl %} |
|
40 |
- <p class="details-link"><a class="link" href="{{ item.detailsUrl }}">{{ 'MSC.more'|trans({}, 'contao_default') }}</a></p> |
|
41 |
- {% endif %} |
|
65 |
+ </div> |
|
42 | 66 |
</div> |
43 |
- </div> |
|
44 |
- {% endblock %} |
|
45 |
- {% endfor %} |
|
46 |
- </div> |
|
47 |
- {% endblock %} |
|
48 |
- {% endfor %} |
|
67 |
+ {% endblock %} |
|
68 |
+ {% endfor %} |
|
69 |
+ </div> |
|
70 |
+ {% endblock %} |
|
71 |
+ {% endfor %} |
|
72 |
+ </div> |
|
49 | 73 |
{% endif %} |
50 | 74 |
{% endblock %} |