src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_sections/_section-2.html.twig line 1

Open in your IDE?
  1. <div class="object__wrapper object__item__section">
  2.     <div class="object__wrapper__title object__wrapper__title--mb-20">{{ ('T_MATERIALS_AND_TECHNIQUES')|trans({}, 'openform_front', app.request.locale) }}:</div>
  3.     <div class="object__wrapper__list">
  4.         {% if entity.AntiquePhisicalAttributeMain|length > 0 %}
  5.             <div class="object__item-wrap">
  6.                 <h3 class="object__item-wrap__title">{{ ('T_OBJECT_PHYSICAL_FEATURES')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  7.                 <div class="object__item-wrap__text">
  8.                     {% for item in entity.AntiquePhisicalAttributeMain %}
  9.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiquePhisicalAttributeMain={{ item.Translation[app.request.locale].title }}">
  10.                             {{ item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title }}
  11.                         </a>
  12.                         {% if not loop.last %},{% endif %}
  13.                     {% endfor %}
  14.                 </div>
  15.             </div>
  16.         {% endif %}
  17.         {% if entity.AntiqueMaterial|length > 0 %}
  18.             <div class="object__item-wrap">
  19.                 <h3 class="object__item-wrap__title">{{ ('T_OBJECT_MATERIALS')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  20.                 <div class="object__item-wrap__text">
  21.                     {% for item in entity.AntiqueMaterial %}
  22.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueMaterial={{ item.Translation[app.request.locale].title }}">
  23.                             {{ item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title }}
  24.                         </a>
  25.                         {% if not loop.last %},{% endif %}
  26.                     {% endfor %}
  27.                 </div>
  28.             </div>
  29.         {% endif %}
  30.         {% if entity.dimensions %}
  31.             <div class="object__item-wrap">
  32.                 <h3 class="object__item-wrap__title">{{ ('T_OBJECT_SIZE')|trans({}, 'openform_front', app.request.locale) ~ ': ' }}</h3>
  33.                 <div class="object__item-wrap__text">
  34.                     {{ entity.dimensions }}
  35.                 </div>
  36.             </div>
  37.         {% endif %}
  38.         {% if entity.AntiquePhisicalAttributeAdditional1|length > 0 %}
  39.             <div class="object__item-wrap">
  40.                 <h3 class="object__item-wrap__title">{{ ('T_OBJECT_ADDITIONAL_FEATURES_1')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  41.                 <div class="object__item-wrap__text">
  42.                     {% for item in entity.AntiquePhisicalAttributeAdditional1 %}
  43.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiquePhisicalAttributeAdditional1={{ item.Translation[app.request.locale].title }}">
  44.                             {{ item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title }}
  45.                         </a>
  46.                         {% if not loop.last %},{% endif %}
  47.                     {% endfor %}
  48.                 </div>
  49.             </div>
  50.         {% endif %}
  51.         {% if entity.AntiquePhisicalAttributeAdditional2|length > 0 %}
  52.             <div class="object__item-wrap">
  53.                 <h3 class="object__item-wrap__title">{{ ('T_OBJECT_ADDITIONAL_FEATURES_2')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  54.                 
  55.                 <div class="object__item-wrap__text">
  56.                     {% for item in entity.AntiquePhisicalAttributeAdditional2 %}
  57.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiquePhisicalAttributeAdditional2={{ item.Translation[app.request.locale].title }}">
  58.                             {{item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title}}
  59.                         </a>
  60.                         {% if not loop.last %},{% endif %}
  61.                     {% endfor %}
  62.                 </div>
  63.             </div>
  64.         {% endif %}
  65.     </div>
  66.     {% if entity.Translation[app.request.locale].artisticDescription %}
  67.         <div class="object__item-wrap object__item-wrap--description">
  68.             <h3 class="object__item-wrap__title">{{ ('T_OBJECT_ARTISTIC_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  69.             <div class="object__item-wrap__text">
  70.                 {{ entity.Translation[app.request.locale].artisticDescription|raw }}
  71.             </div>
  72.         </div>
  73.     {% endif %}
  74.     {% if entity.Translation[app.request.locale].artisticDescriptionAdditional %}
  75.         <div class="object__item-wrap object__item-wrap--description">
  76.             <h3 class="object__item-wrap__title">{{ ('T_OBJECT_ARTISTIC_DESCRIPTION_ADDITIONAL')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  77.             <div class="object__item-wrap__text">
  78.                 {{ entity.Translation[app.request.locale].artisticDescriptionAdditional|raw }}
  79.             </div>
  80.         </div>
  81.     {% endif %}
  82. </div>