{% set idType = idType|default('') %}
{% set id = id|default('') %}
{% set layout = layout|default(null) %}
<div class="layout-modal-base-print no-screen" id="{{ idType }}{{ id }}">
{% include "_parts/header/header-print.html.twig" %}
{% block print_heading %}
{% set article = article|default(null) %}
{% set readyDate = readyDate|default(null) %}
<div class="layout-modal-base-print__heading">
<div class="layout-modal-base-print__heading-base">
{% if layout %}
<h3 class="layout-modal-base-print__title print__text16 print__headings">
{{ layout.name }}
</h3>
{% endif %}
{% if article %}
<div class="layout-modal-base-print__article print__text10">
Артикул: {{ article }}
</div>
{% endif %}
</div>
{% if readyDate %}
<div class="layout-modal-base-print__subtitle print__body-text_grey print__text10">
Срок сдачи {{ readyDate }}
</div>
{% endif %}
</div>
{% endblock %}
{% block first_page %}
{% if layout %}
<div class="layout-modal-base-print__page">
<div class="layout-modal-base-print__content">
{% if layout is has_image('imageName') %}
<div class="layout-modal-base-print__content-part">
<div class="layout-modal-base-print__image-block">
<div class="layout-modal-base-print__image-wrap layout-modal-base-print__image-wrap_planning">
{% include '_parts/image/adaptive-image.html.twig' with {
object: layout,
field: 'imageFile',
size: 'layout_modal_image',
alt: 'Планировка',
class: 'layout-modal-base-print__image',
classPicture: 'layout-modal-base-print__picture',
} %}
</div>
<div class="layout-modal-base-print__image-name print__body-text_grey print__text09">
Планировка
</div>
</div>
</div>
{% endif %}
{% set hasPlanObject = null %}
{% set planField = '' %}
{% if layout is has_image('imagePlanName') %}
{% set hasPlanObject = layout %}
{% set planField = 'imagePlanFile' %}
{% elseif layout.floorGroopPlaces|length %}
{% set floorGroup = layout.floorGroopPlaces.toArray[0].floorGroup %}
{% if floorGroup is has_image('imageName') %}
{% set hasPlanObject = floorGroup %}
{% set planField = 'imageFile' %}
{% endif %}
{% endif %}
{% if hasPlanObject %}
<div class="layout-modal-base-print__content-part">
<div class="layout-modal-base-print__image-block">
<div class="layout-modal-base-print__image-wrap layout-modal-base-print__image-wrap_plan">
{% include '_parts/image/adaptive-image.html.twig' with {
object: hasPlanObject,
field: planField,
size: 'plan_print_image',
alt: 'Планировка',
class: 'layout-modal-base-print__image',
classPicture: 'layout-modal-base-print__picture',
} %}
</div>
<div class="layout-modal-base-print__image-name print__body-text_grey print__text09">
План этажа
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% endblock %}
<div class="layout-modal-base-print__page">
<div class="layout-modal-base-print__content">
<div class="layout-modal-base-print__content-part">
{% block info_list %}
{% set features = features|default([]) %}
{% include '_parts/realty/_layout-info-list-print.html.twig' with {
class: 'layout-modal-base-print__info-list',
features: features
} %}
{% endblock %}
{% block total_price %}
{% endblock %}
</div>
<div class="layout-modal-base-print__content-part">
{% block ending %}{% endblock %}
</div>
</div>
{% include "_parts/footer/footer-print.html.twig" with {
dataUrl: app.request.getHost() ~ '/?' ~ idType ~'Id=' ~ id
} %}
</div>
</div>