<div class="plannings-list {{ viewType }}">
{# значения viewType смотри в _plannings.html.twig #}
{% if settings.realtyViewType == 10 %}
{% set size = 'plannings_layout_card' %}
{% else %}
{% set size = 'plannings_layout_list' %}
{% endif %}
<div class="plannings-list__top-wrap">
<div class="plannings-list__sort-text-wrap text__body text__grey03">
Сортировать:
<div class="plannings-list__sort-wrap">
<div
data-filter-fieldset="sort"
data-filter-fieldset-type="{{ realtyFilter.getFieldSet("sort").type }}"
data-filter-key="{{ realtyFilter.key }}">
</div>
</div>
</div>
<div class="plannings-list__flats-found text__body text__main01" data-filter-key="{{ realtyFilter.key }}"
data-filter-result="TOTAL">
{{ realtyPager.getTotalItemCount() }}
планировок найдено
</div>
</div>
<div class="plannings-list__list-wrapper" id="flats" data-filter-key="{{ realtyFilter.key }}"
data-filter-result="CONTENT">
<ul
class="plannings-list__list {% if settings.realtyViewType == 10 %} grid-block {% endif %}"
data-pagination-data="{{ realtyPager.paginatorOptions.pageParameterName }}"
>
{% for layout in realtyPager.items %}
<li class="plannings-list__item">
<a href="{{ path('realty:layout_modal', {'id': layout.id}) }}"
class="plannings-list__item-link"
data-modal
data-modal-theme="_layout-modal"
data-goal-yandex-click="{{ settings().clickLayoutFormGoal }}"
data-goal-vk-click="{{ settings().clickLayoutFormGoal }}"
>
<span class="plannings-list__item-top-wrap">
<span class="plannings-list__image-wrap">
{% if layout is has_image('imageName') %}
{% include '_parts/image/adaptive-image.html.twig' with {
object: layout,
field: 'imageFile',
size: size,
alt: layout.fullName,
class: 'plannings-list__image',
classPicture: 'plannings-list__picture',
} %}
{% endif %}
</span>
<span class="plannings-list__layout-about-wrap">
<span class="plannings-list__layout-name h6 text__black-text">
{{ layout.name }}
</span>
<span class="plannings-list__layout-info-wrap">
<span class="plannings-list__info plannings-list__info_area">
<span class="plannings-list__info-name text__small text__grey03">
Площадь
</span>
<span class="plannings-list__info-value text__small text__black-text">
{{ layout.areaTotal }}
</span>
</span>
<span class="plannings-list__info">
<span class="plannings-list__info-name text__small text__grey03">
Этаж
</span>
<span class="plannings-list__info-value text__small text__black-text">
{{ layout.floorsVerbose }}
</span>
</span>
<span class="plannings-list__info">
<span class="plannings-list__info-name text__small text__grey03">
Отделка
</span>
{% set renovation = layout.renovationsVerbose %}
{% if renovation == 'без отделки' or layout.renovationsVerbose == 'Без отделки' %}
{% set renovation = "Под отделку" %}
{% endif %}
<span class="plannings-list__info-value text__small text__black-text">
{{ renovation }}
</span>
</span>
</span>
</span>
</span>
<span class="plannings-list__layout-price-wrap">
<span class="plannings-list__layout-price h5 text__black-text">
от {{ layout.price|price }}
</span>
<span class="plannings-list__layout-price-info text__small text__grey03">
или от {{ (layout.price/layout.areaTotal)|price }} за м²
</span>
</span>
<a href="{{ path('global-fav:toggle', {id: layout.id}) }}"
title="Избранное"
class="plannings-list__favorites"
data-global-fav-link
data-fav-goal="{{ settings().favGoal }}"
data-in-fav="{{ in_global_fav(layout) }}"
data-loading="false"
>
{% include '_parts/icons/heart.svg' %}
</a>
{% set actionLinkColorsAsVars = layout.iconBg ? get_layout_action_color_as_vars(layout.iconBg) : [] %}
<span class="plannings-list__actions-wrap" style="{% for key, color in actionLinkColorsAsVars %}{{ key }}:{{ color }};{% endfor %}">
{% include '_parts/sber-action-link.html.twig' with {
class: 'plannings-list__sber-action-link sber-action-link_index'
} %}
{% include '_parts/sber-action-link.html.twig' with {
class: 'plannings-list__sber-action-link sber-action-link_index sber-action-link_layout',
actionLinkSettings: layout,
actionName: layout.actionName
} %}
</span>
</a>
</li>
{% endfor %}
</ul>
<div class="plannings-list__next-wrap">
{{ knp_pagination_render(realtyPager, '_parts/pagination-endless.html.twig') }}
</div>
</div>
</div>