templates/pages/modal/realty/_layout-modal-base.html.twig line 1

Open in your IDE?
  1. {% extends app.request.xmlHttpRequest ? 'ajax.html.twig' : 'base.html.twig' %}
  2. {% block content %}
  3.     {% set id = id|default('') %}
  4.     {% set idType = idType|default('') %}
  5.     {% set class = class|default('') %}
  6.     {% set title = title|default('') %}
  7.     {% set subtitle = subtitle|default('') %}
  8.     <div class="layout-modal-base {{ class }} no-print"
  9.          data-layout-modal
  10.          data-type="{{ idType }}"
  11.          data-id="{{ id }}"
  12.     >
  13.         <div class="layout-modal-base__main">
  14.             <div class="layout-modal-base__heading">
  15.                 {% if title %}
  16.                     <div class="layout-modal-base__title-wrap">
  17.                         <div class="layout-modal-base__title text__black-text">
  18.                             <h3>
  19.                                 {{ title }}
  20.                             </h3>
  21.                             {% set actionLinkColorsAsVars = layout.iconBg ? get_layout_action_color_as_vars(layout.iconBg) : [] %}
  22.                             <span class="layout-modal-base__actions-wrap" style="{% for key, color in actionLinkColorsAsVars %}{{ key }}:{{ color }};{% endfor %}">
  23.                                 {% include '_parts/sber-action-link.html.twig' with {
  24.                                     class: 'plannings-list__sber-action-link sber-action-link_modal'
  25.                                 } %}
  26.                                 {% include '_parts/sber-action-link.html.twig' with {
  27.                                     class: 'plannings-list__sber-action-link sber-action-link_modal sber-action-link_layout',
  28.                                     actionLinkSettings: layout,
  29.                                     actionName: layout.actionName
  30.                                 } %}
  31.                         </span>
  32.                         </div>
  33.                     </div>
  34.                 {% endif %}
  35.                 {% if subtitle %}
  36.                     <div class="layout-modal-base__subtitle text__body">
  37.                         {{ subtitle }}
  38.                     </div>
  39.                 {% endif %}
  40.             </div>
  41.             <div class="layout-modal-base__left">
  42.                 {% block layout_modal_left %}
  43.                 {% endblock %}
  44.             </div>
  45.             <div class="layout-modal-base__right">
  46.                 {% block layout_modal_right %}
  47.                     {% set imageObject = imageObject|default(null) %}
  48.                     {% set tabs = get_layout_modal_tabs() %}
  49.                     {% set floorGroupPlace = floorGroupPlace|default(null) %}
  50.                     {% include '_parts/realty/_layout-tabs-block.html.twig' with {
  51.                         class: 'layout-modal-base__tabs-block',
  52.                         imageObject: imageObject,
  53.                         tabs: tabs,
  54.                         floorGroupPlace: floorGroupPlace
  55.                     } %}
  56.                 {% endblock %}
  57.             </div>
  58.         </div>
  59.         {% block layout_modal_form %}
  60.             {% set form = form|default(null) %}
  61.             {% set actionPath = actionPath|default('') %}
  62.             <div class="layout-modal-base__form-wrap no-print">
  63.                 {% include '_parts/realty/_layout-modal-form.html.twig' with {
  64.                     class: 'layout-modal-base__form',
  65.                     form: form,
  66.                     actionPath: actionPath
  67.                 } %}
  68.             </div>
  69.         {% endblock %}
  70.     </div>
  71.     {# print section #}
  72.     {% block print_section %}
  73.         {% set printTemplate = printTemplate|default('') %}
  74.         {% set layout = layout|default(null) %}
  75.         {% if printTemplate %}
  76.             {% include printTemplate with {
  77.                 idType: idType,
  78.                 id: id,
  79.                 layout: layout
  80.             } %}
  81.         {% endif %}
  82.     {% endblock %}
  83. {% endblock %}