src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_sections/_section-2-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_DATE')|trans({}, 'openform_front', app.request.locale) }}:</div>
  3.     <div class="object__wrapper__list">
  4.         {% if entity.getDocumentDate() %}
  5.             <div class="object__item-wrap">
  6.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_DOCUMENT_PHOTO_DATE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  7.                 <div class="object__item-wrap__text">
  8.                     {{entity.getDocumentDate()|date("d.m.Y")}}
  9.                 </div>
  10.             </div>
  11.         {% endif %}
  12.         {% if entity.getDocumentDate() and entity.documentAge %}
  13.             <div class="object__item-wrap">
  14.                 <h3 class="object__item-wrap__title">{{('T_ANTIQUE_DOCUMENT_YEAR_AGE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  15.                 <div class="object__item-wrap__text">
  16.                     <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ entity.getDocumentDate()|date('Y') }}">
  17.                         {{ entity.getDocumentDate()|date('Y') }}
  18.                     </a>
  19.                     r.
  20.                     <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?age={{ entity.documentAge }}">
  21.                         {{entity.documentAge}}
  22.                     </a>
  23.                     w.
  24.                 </div>
  25.             </div>
  26.         {% endif %}
  27.         {% if entity.Translation[app.request.locale].documentHistory %}
  28.             <div class="object__item-wrap object__item-wrap--description">
  29.                 <h3 class="object__item-wrap__title">{{('T_OBJECT_HISTORY_DOCUMENT_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  30.                 <div class="object__item-wrap__text">
  31.                     {{entity.Translation[app.request.locale].documentHistory|raw}}
  32.                 </div>
  33.             </div>
  34.         {% endif %}
  35.         {% if entity.Translation[app.request.locale].background %}
  36.             <div class="object__item-wrap">
  37.                 <h3 class="object__item-wrap__title">{{('T_OBJECT_INSCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  38.                 <div class="object__item-wrap__text">
  39.                     {{entity.Translation[app.request.locale].background|raw}}
  40.                 </div>
  41.             </div>
  42.         {% endif %}
  43.         {% if entity.objectYear and entity.objectAge %}
  44.             <div class="object__item-wrap">
  45.                 <h3 class="object__item-wrap__title">{{('T_OBJECT_ON_DOCUMENT_YEAR_AGE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  46.                 <div class="object__item-wrap__text">
  47.                     <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ entity.objectYear }}">
  48.                         {{ entity.objectYear }}
  49.                     </a>
  50.                     r.
  51.                     <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?age={{ entity.objectAge }}">
  52.                         {{entity.objectAge}}
  53.                     </a>
  54.                     w.
  55.                 </div>
  56.             </div>
  57.         {% endif %}
  58.         
  59.         {% if entity.Translation[app.request.locale].objectHistory %}
  60.             <div class="object__item-wrap object__item-wrap--description">
  61.                 <h3 class="object__item-wrap__title">{{('T_OBJECT_HISTORY_DOCUMENT_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  62.                 <div class="object__item-wrap__text">
  63.                     {{entity.Translation[app.request.locale].objectHistory|raw}}
  64.                 </div>
  65.             </div>
  66.         {% endif %}
  67.     </div>
  68. </div>