src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_sections/_section-4.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">{{ (entity.Artist|length > 0 ? 'T_ARTISTS_INFO' : 'T_ARTIST_INFO' )|trans({}, 'openform_front', app.request.locale) }}:</div>
  3.     {% for artist in entity.Artist %}
  4.         <div class="object__wrapper__list">
  5.             {% if artist.fullName %}
  6.                 <div class="object__item-wrap">
  7.                     <h3 class="object__item-wrap__title">{{ ('T_ARTIST_FULL_NAME')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  8.                     <div class="object__item-wrap__text">
  9.                         <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?artist={{ artist.fullName }}">
  10.                             {{ artist.fullName }}
  11.                             {{ artist.authorNickName ? '"' ~ artist.authorNickName ~ '"'}}
  12.                         </a>
  13.                     </div>
  14.                 </div>
  15.             {% endif %}
  16.             {% if artist.dateBirth or artist.yearBirth or artist.ageBirth %}
  17.                 <div class="object__item-wrap">
  18.                     <h3 class="object__item-wrap__title">{{ ('T_AUTHOR_BIRTH_DATE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  19.                     <div class="object__item-wrap__text">
  20.                         {% include('@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age.html.twig') with {
  21.                             'date': artist.dateBirth, 
  22.                             'year': artist.yearBirth, 
  23.                             'age': artist.ageBirth, 
  24.                         } %}
  25.                     </div>
  26.                 </div>
  27.             {% endif %}
  28.             {% if artist.birthPlace %}
  29.                 <div class="object__item-wrap">
  30.                     <h3 class="object__item-wrap__title">{{ ('T_ARTIST_BIRTH_PLACE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  31.                     <div class="object__item-wrap__text">
  32.                         {{ artist.birthPlace }}
  33.                     </div>
  34.                 </div>
  35.             {% endif %}
  36.             {% if artist.dateDeath or artist.ageDeath or artist.yearDeath %}
  37.                 <div class="object__item-wrap">
  38.                     <h3 class="object__item-wrap__title">{{ ('T_AUTHOR_DEATH_DATE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  39.                     <div class="object__item-wrap__text">
  40.                         {% include('@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age.html.twig') with {
  41.                             'date': artist.dateDeath,
  42.                             'age': artist.ageDeath,
  43.                             'year': artist.yearDeath,
  44.                         } %}
  45.                     </div>
  46.                 </div>
  47.             {% endif %}
  48.             {% if artist.deathPlace %}
  49.                 <div class="object__item-wrap">
  50.                     <h3 class="object__item-wrap__title">{{('T_ARTIST_DEATH_PLACE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  51.                     <div class="object__item-wrap__text">
  52.                         {{ artist.deathPlace }}
  53.                     </div>
  54.                 </div>
  55.             {% endif %}
  56.         </div>
  57.         {% if artist.Translation[app.request.locale].authorDescription %}
  58.             <div class="object__item-wrap object__item-wrap--description">
  59.                 <h3 class="object__item-wrap__title">{{('T_ARTIST_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  60.                 <div class="object__item-wrap__text">
  61.                     {{ artist.Translation[app.request.locale].authorDescription|raw }}
  62.                 </div>
  63.             </div>
  64.         {% endif %}
  65.         {% if artist.Translation[app.request.locale].authorRemarks %}
  66.             <div class="object__item-wrap object__item-wrap--description">
  67.                 <h3 class="object__item-wrap__title">{{('T_OBJECT_ARTIST_DESCRIPTION_ADDITIONAL')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  68.                 <div class="object__item-wrap__text">
  69.                     {{ artist.Translation[app.request.locale].authorRemarks|raw }}
  70.                 </div>
  71.             </div>
  72.         {% endif %}
  73.     {% endfor %}
  74. </div>