src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_sections/_section-1-archive.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.     
  4.     <div class="object__wrapper__list">
  5.         {% if entity.Translation[app.request.locale].title %}
  6.             <div class="object__item-wrap object__item-wrap--title">
  7.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_TITLE_OBJECT')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  8.                 <div class="object__item-wrap__text">
  9.                     {{entity.Translation[app.request.locale].title}}
  10.                 </div>
  11.             </div>
  12.         {% endif %}
  13.         {% if entity.DocumentArtist|length > 0 %}
  14.             <div class="object__item-wrap">
  15.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_DOCUMENT_AUTHOR')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  16.                 <div class="object__item-wrap__text">
  17.                     {% for artist in entity.DocumentArtist %}
  18.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?artist={{ artist.fullName }}">
  19.                             {{artist.fullName ? artist.fullName }}
  20.                             {{ artist.authorNickName ? '"' ~ artist.authorNickName ~ '"'}}
  21.                         </a>
  22.                         {{entity.DocumentArtist|length > 1 ? ', '}}
  23.                     {% endfor %}
  24.                 </div>
  25.             </div>
  26.         {% endif %}
  27.         {% if ( entity.getCreationDate() or entity.photoCreationAge or entity.photoCreationYear ) %}
  28.             <div class="object__item-wrap">
  29.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_CREATION_DATE_PHOTO')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  30.                 <div class="object__item-wrap__text">
  31.                     {% include('@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig') with {
  32.                                 'date': entity.getCreationDate(),
  33.                                 'age': entity.photoCreationAge,
  34.                                 'year': entity.photoCreationYear,
  35.                             } %}
  36.                 </div>
  37.             </div>
  38.         {% endif %}
  39.         {% if entity.Translation[app.request.locale].placeExactly %}
  40.             <div class="object__item-wrap">
  41.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_PLACE_EXACLY')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  42.                 <div class="object__item-wrap__text">
  43.                     {{entity.Translation[app.request.locale].placeExactly}}
  44.                 </div>
  45.             </div>
  46.         {% endif %}
  47.         {% if entity.AntiquePlace %}
  48.             <div class="object__item-wrap">
  49.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_PLACE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  50.                 <div class="object__item-wrap__text">
  51.                     {{entity.AntiquePlace.Translation[app.request.locale].title}}
  52.                 </div>
  53.             </div>
  54.         {% endif %}
  55.         {% if entity.AntiqueType|length > 0 %}
  56.             <div class="object__item-wrap">
  57.                 <h3 class="object__item-wrap__title">{{('T_OBJECT_TYPE')|trans({}, 'openform_front', app.request.locale) ~ ': ' }}</h3>
  58.                 <div class="object__item-wrap__text">
  59.                     {% for key, item in entity.AntiqueType %}
  60.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueType={{ item.Translation[app.request.locale].title }}">
  61.                             {{ item.Translation[app.request.locale].title }}
  62.                         </a>
  63.                         {% if not loop.last %},
  64.                         {% endif %}
  65.                     {% endfor %}
  66.                 </div>
  67.             </div>
  68.         {% endif %}
  69.         {% if entity.AntiqueTechnique|length > 0 %}
  70.             <div class="object__item-wrap">
  71.                 <h3 class="object__item-wrap__title">{{('T_MATERIALS_AND_TECHNIQUES')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  72.                 <div class="object__item-wrap__text">
  73.                     {% for item in entity.AntiqueTechnique %}
  74.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueTechnique={{ item.Translation[app.request.locale].title }}">
  75.                             {{item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title}}
  76.                         </a>
  77.                         {% if not loop.last %},
  78.                         {% endif %}
  79.                     {% endfor %}
  80.                 </div>
  81.             </div>
  82.         {% endif %}
  83.         {% if entity.AntiqueSuit %}
  84.             <div class="object__item-wrap">
  85.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_COLLECTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  86.                 <div class="object__item-wrap__text">
  87.                     {% set href = toolkit_route_localizer.generate('antique_suit_item', {
  88.                             'slug': entity.AntiqueSuit.Translation[app.request.locale].slug
  89.                             }, app.request.locale) %}
  90.                     <a href="{{href}}">{{ entity.AntiqueSuit.Translation[app.request.locale].title }}</a>
  91.                 </div>
  92.             </div>
  93.         {% endif %}
  94.     </div>
  95.     {% if entity.Translation[app.request.locale].text2 %}
  96.         <div class="object__item-wrap object__item-wrap--description">
  97.             <h3 class="object__item-wrap__title">{{( 'T_ANTIQUE_MAIN_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  98.             <div class="object__item-wrap__text">
  99.                 {{entity.Translation[app.request.locale].text2|raw}}
  100.             </div>
  101.         </div>
  102.     {% endif %}
  103.     {% if entity.Translation[app.request.locale].folkContext %}
  104.         <div class="object__item-wrap object__item-wrap--description">
  105.             <h3 class="object__item-wrap__title">{{('T_ANTIQUE_FOLK_CONTEXT' )|trans({}, 'openform_front', app.request.locale) }}:</h3>
  106.             <div class="object__item-wrap__text">
  107.                 {{entity.Translation[app.request.locale].folkContext|raw}}
  108.             </div>
  109.         </div>
  110.     {% endif %}
  111.     {% if entity.Translation[app.request.locale].description %}
  112.         <div class="object__item-wrap object__item-wrap--description">
  113.             <h3 class="object__item-wrap__title">{{( 'T_ANTIQUE_ADDITIONAL_DESCRIPTION' )|trans({}, 'openform_front', app.request.locale) }}:</h3>
  114.             <div class="object__item-wrap__text">
  115.                 {{entity.Translation[app.request.locale].description|raw}}
  116.             </div>
  117.         </div>
  118.     {% endif %}
  119. </div>