{% extends app.request.xmlHttpRequest ? 'ajax.html.twig' : 'base.html.twig' %}
{% block content %}
{% set id = id|default('') %}
{% set idType = idType|default('') %}
{% set class = class|default('') %}
{% set title = title|default('') %}
{% set subtitle = subtitle|default('') %}
<div class="layout-modal-base {{ class }} no-print"
data-layout-modal
data-type="{{ idType }}"
data-id="{{ id }}"
>
<div class="layout-modal-base__main">
<div class="layout-modal-base__heading">
{% if title %}
<div class="layout-modal-base__title-wrap">
<div class="layout-modal-base__title text__black-text">
<h3>
{{ title }}
</h3>
{% set actionLinkColorsAsVars = layout.iconBg ? get_layout_action_color_as_vars(layout.iconBg) : [] %}
<span class="layout-modal-base__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_modal'
} %}
{% include '_parts/sber-action-link.html.twig' with {
class: 'plannings-list__sber-action-link sber-action-link_modal sber-action-link_layout',
actionLinkSettings: layout,
actionName: layout.actionName
} %}
</span>
</div>
</div>
{% endif %}
{% if subtitle %}
<div class="layout-modal-base__subtitle text__body">
{{ subtitle }}
</div>
{% endif %}
</div>
<div class="layout-modal-base__left">
{% block layout_modal_left %}
{% endblock %}
</div>
<div class="layout-modal-base__right">
{% block layout_modal_right %}
{% set imageObject = imageObject|default(null) %}
{% set tabs = get_layout_modal_tabs() %}
{% set floorGroupPlace = floorGroupPlace|default(null) %}
{% include '_parts/realty/_layout-tabs-block.html.twig' with {
class: 'layout-modal-base__tabs-block',
imageObject: imageObject,
tabs: tabs,
floorGroupPlace: floorGroupPlace
} %}
{% endblock %}
</div>
</div>
{% block layout_modal_form %}
{% set form = form|default(null) %}
{% set actionPath = actionPath|default('') %}
<div class="layout-modal-base__form-wrap no-print">
{% include '_parts/realty/_layout-modal-form.html.twig' with {
class: 'layout-modal-base__form',
form: form,
actionPath: actionPath
} %}
</div>
{% endblock %}
</div>
{# print section #}
{% block print_section %}
{% set printTemplate = printTemplate|default('') %}
{% set layout = layout|default(null) %}
{% if printTemplate %}
{% include printTemplate with {
idType: idType,
id: id,
layout: layout
} %}
{% endif %}
{% endblock %}
{% endblock %}