src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_sections/_section-1.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_ANTIQUE_BASIC_INFORMATION')|trans({}, 'openform_front', app.request.locale) }}:</div>
  3.     <div class="object__wrapper__list">
  4.         {% if entity.Translation[app.request.locale].title %}
  5.             <div class="object__item-wrap object__item-wrap--title">
  6.                 <h3 class="object__item-wrap__title">{{ ('T_ANTIQUE_TITLE_WORK')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  7.                 <div class="object__item-wrap__text">
  8.                     {{ entity.Translation[app.request.locale].titleHtml|raw }}
  9.                 </div>
  10.             </div>
  11.         {% endif %}
  12.         {% if entity.Artist|length > 0 and parentPage.antiqueFormDesign != 'ARCHIVE' %}
  13.             <div class="object__item-wrap">
  14.                 <h3 class="object__item-wrap__title">{{ ('T_ANTIQUE_AUTHOR')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  15.                 <div class="object__item-wrap__text">
  16.                     {% for artist in entity.Artist %}
  17.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?artist={{ artist.fullName }}">
  18.                             {{ artist.fullName ? artist.fullName }}
  19.                             {{ artist.authorNickName ? '"' ~ artist.authorNickName ~ '"'}}
  20.                         </a>
  21.                         {{ entity.Artist|length > 1 ? ', ' }}
  22.                     {% endfor %}
  23.                 </div>
  24.             </div>
  25.         {% endif %}
  26.         {% if entity.Artist|length > 0 %}
  27.             <div class="object__item-wrap">
  28.                 <h3 class="object__item-wrap__title">{{ ('T_ANTIQUE_DATE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  29.                 
  30.                 <div class="object__item-wrap__text">
  31.                     {% include('@openform_front_templates/AntiqueSuit/_templates/_fields/_dates_and_ages.html.twig') with {
  32.                         'dateFrom': entity.date, 
  33.                         'dateTo': entity.dateTo,
  34.                         'ageFrom': entity.age, 
  35.                         'ageTo': entity.ageTo,
  36.                         'yearFrom': entity.year ?? entity.shownObjectYear, 
  37.                         'yearTo': entity.yearTo ?? entity.shownObjectAge,
  38.                     } %}
  39.                 </div>
  40.             </div>
  41.         {% endif %}
  42.         {% if entity.AntiqueType|length > 0 %}
  43.             <div class="object__item-wrap">
  44.                 <h3 class="object__item-wrap__title">{{ ('T_OBJECT_TYPE')|trans({}, 'openform_front', app.request.locale) ~ ': ' }}</h3>
  45.                 <div class="object__item-wrap__text">
  46.                     {% for key, item in entity.AntiqueType %}
  47.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueType={{ item.Translation[app.request.locale].title }}">
  48.                             {{ item.Translation[app.request.locale].title }}
  49.                         </a>
  50.                         {% if not loop.last %},{% endif %}
  51.                     {% endfor %}
  52.                 </div>
  53.             </div>
  54.         {% endif %}
  55.         {% if entity.AntiqueTechnique|length > 0 %}
  56.             <div class="object__item-wrap">
  57.                 <h3 class="object__item-wrap__title">{{ ('T_MATERIALS_AND_TECHNIQUES')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  58.                 <div class="object__item-wrap__text">
  59.                     {% for item in entity.AntiqueTechnique %}
  60.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueTechnique={{ item.Translation[app.request.locale].title }}">
  61.                             {{ item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title }}
  62.                         </a>
  63.                         {% if not loop.last %},{% endif %}
  64.                     {% endfor %}
  65.                 </div>
  66.             </div>
  67.         {% endif %}
  68.         {% if entity.AntiqueSuit %}
  69.             <div class="object__item-wrap">
  70.                 <h3 class="object__item-wrap__title">{{ ('T_ANTIQUE_COLLECTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  71.                 <div class="object__item-wrap__text">
  72.                     {% set href = toolkit_route_localizer.generate('antique_suit_item', {'slug': entity.AntiqueSuit.Translation[app.request.locale].slug}, app.request.locale) %}
  73.                     <a href="{{ href }}">{{ entity.AntiqueSuit.Translation[app.request.locale].title }}</a>
  74.                 </div>
  75.             </div>
  76.         {% endif %}
  77.     </div>
  78.     {% if entity.Translation[app.request.locale].text2 %}
  79.         <div class="object__item-wrap object__item-wrap--description">
  80.             <h3 class="object__item-wrap__title">{{ ( parentPage.antiqueFormDesign != 'ARCHIVE' ? 'T_ANTIQUE_DESCRIPTION' : 'T_ANTIQUE_MAIN_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  81.             <div class="object__item-wrap__text">
  82.                 {{ entity.Translation[app.request.locale].text2|raw }}
  83.             </div>
  84.         </div>
  85.     {% endif %}
  86.     {% if entity.Translation[app.request.locale].description %}
  87.         <div class="object__item-wrap object__item-wrap--description">
  88.             <h3 class="object__item-wrap__title">{{ ( 'T_ANTIQUE_SUPPLEMENTARY_DESCRIPTION' )|trans({}, 'openform_front', app.request.locale) }}:</h3>
  89.             <div class="object__item-wrap__text">
  90.                 {{ entity.Translation[app.request.locale].description|raw }}
  91.             </div>
  92.         </div>
  93.     {% endif %}
  94. </div>