templates/_parts/realty/print/_base-realty-print.html.twig line 1

Open in your IDE?
  1. {% set idType = idType|default('') %}
  2. {% set id = id|default('') %}
  3. {% set layout = layout|default(null) %}
  4. <div class="layout-modal-base-print no-screen" id="{{ idType }}{{ id }}">
  5.     {% include "_parts/header/header-print.html.twig" %}
  6.     {% block print_heading %}
  7.         {% set article = article|default(null) %}
  8.         {% set readyDate = readyDate|default(null) %}
  9.         <div class="layout-modal-base-print__heading">
  10.             <div class="layout-modal-base-print__heading-base">
  11.                 {% if layout %}
  12.                     <h3 class="layout-modal-base-print__title print__text16 print__headings">
  13.                         {{ layout.name }}
  14.                     </h3>
  15.                 {% endif %}
  16.                 {% if article %}
  17.                     <div class="layout-modal-base-print__article print__text10">
  18.                         Артикул: {{ article }}
  19.                     </div>
  20.                 {% endif %}
  21.             </div>
  22.             {% if readyDate %}
  23.                 <div class="layout-modal-base-print__subtitle print__body-text_grey print__text10">
  24.                     Срок сдачи {{ readyDate }}
  25.                 </div>
  26.             {% endif %}
  27.         </div>
  28.     {% endblock %}
  29.     {% block first_page %}
  30.         {% if layout %}
  31.             <div class="layout-modal-base-print__page">
  32.                 <div class="layout-modal-base-print__content">
  33.                     {% if layout is has_image('imageName')  %}
  34.                         <div class="layout-modal-base-print__content-part">
  35.                             <div class="layout-modal-base-print__image-block">
  36.                                 <div class="layout-modal-base-print__image-wrap layout-modal-base-print__image-wrap_planning">
  37.                                     {% include '_parts/image/adaptive-image.html.twig' with {
  38.                                         object: layout,
  39.                                         field: 'imageFile',
  40.                                         size: 'layout_modal_image',
  41.                                         alt: 'Планировка',
  42.                                         class: 'layout-modal-base-print__image',
  43.                                         classPicture: 'layout-modal-base-print__picture',
  44.                                     } %}
  45.                                 </div>
  46.                                 <div class="layout-modal-base-print__image-name print__body-text_grey print__text09">
  47.                                     Планировка
  48.                                 </div>
  49.                             </div>
  50.                         </div>
  51.                     {% endif %}
  52.                     {% set hasPlanObject = null %}
  53.                     {% set planField = '' %}
  54.                     {% if layout is has_image('imagePlanName')  %}
  55.                         {% set hasPlanObject = layout %}
  56.                         {% set planField = 'imagePlanFile' %}
  57.                     {% elseif layout.floorGroopPlaces|length %}
  58.                         {% set floorGroup = layout.floorGroopPlaces.toArray[0].floorGroup %}
  59.                         {% if floorGroup is has_image('imageName') %}
  60.                             {% set hasPlanObject = floorGroup %}
  61.                             {% set planField = 'imageFile' %}
  62.                         {% endif %}
  63.                     {% endif %}
  64.                     {% if hasPlanObject %}
  65.                         <div class="layout-modal-base-print__content-part">
  66.                             <div class="layout-modal-base-print__image-block">
  67.                                 <div class="layout-modal-base-print__image-wrap layout-modal-base-print__image-wrap_plan">
  68.                                     {% include '_parts/image/adaptive-image.html.twig' with {
  69.                                         object: hasPlanObject,
  70.                                         field: planField,
  71.                                         size: 'plan_print_image',
  72.                                         alt: 'Планировка',
  73.                                         class: 'layout-modal-base-print__image',
  74.                                         classPicture: 'layout-modal-base-print__picture',
  75.                                     } %}
  76.                                 </div>
  77.                                 <div class="layout-modal-base-print__image-name print__body-text_grey print__text09">
  78.                                     План этажа
  79.                                 </div>
  80.                             </div>
  81.                         </div>
  82.                     {% endif %}
  83.                 </div>
  84.             </div>
  85.         {% endif %}
  86.     {% endblock %}
  87.     <div class="layout-modal-base-print__page">
  88.         <div class="layout-modal-base-print__content">
  89.             <div class="layout-modal-base-print__content-part">
  90.                 {% block info_list %}
  91.                     {% set features = features|default([]) %}
  92.                     {% include '_parts/realty/_layout-info-list-print.html.twig' with {
  93.                         class: 'layout-modal-base-print__info-list',
  94.                         features: features
  95.                     } %}
  96.                 {% endblock %}
  97.                 {% block total_price %}
  98.                 {% endblock %}
  99.             </div>
  100.             <div class="layout-modal-base-print__content-part">
  101.                 {% block ending %}{% endblock %}
  102.             </div>
  103.         </div>
  104.         {% include "_parts/footer/footer-print.html.twig" with {
  105.             dataUrl: app.request.getHost() ~ '/?' ~ idType ~'Id=' ~ id
  106.         } %}
  107.     </div>
  108. </div>