templates/contact/get_acteur_territoire.html.twig line 1

Open in your IDE?
  1. <div class="splide-photo splide" aria-label="En lien avec">
  2.     <div class="splide__track">
  3.         <ul class="splide__list">
  4.             {% if request|length > 0 %}
  5.                 {% for i, user in request %}
  6.                     <li class="splide__slide acteur-slide">
  7.                         <div class="preview-container br8 dflex fdc p-half-em">
  8.                             {% if user.avatar is defined and user.avatar is not empty %}
  9.                                 <div class="dflex jcc aic mb-20px">
  10.                                     {% set media = sulu_resolve_media(user.avatar.id, 'fr') %}
  11.                                     <img class="frame-team-pic" src="{{ media.formats['sulu-100x100.webp'] }}" title="{{ media.title }}" alt="{{ media | copyright_or_description_or_title }}" width="100" height="100">
  12.                                 </div>
  13.                             {% endif %}
  14.                             <div class="mb-8px frame-team-name cdarkblue fs36 fw400 lh40 tac">{{ user.firstName }}
  15.                                 {{ user.middleName }}
  16.                                 {{ user.lastName }}
  17.                             </div>
  18.                             <div class="preview-content dflex fdc mb-40px">
  19.                                 {% set categories = user.categories %}
  20.                                 {% include "blocks/previews-from-controller/blocks/categoriesActeur.html.twig" %}
  21.                             </div>
  22.                             {% if user.territoireIntervention.name  is defined and user.territoireIntervention.name  is not empty %}
  23.                                 <div class="dflex" style="min-height: 243px;">
  24.                                     <div class="dflex fdc ais icon-acteur-territoire">
  25.                                         <div class="dflex aic mb-10px">
  26.                                             <img src="/resources/img/location-icon.svg" alt="Location" class="pr1em" width="21" height="20">
  27.                                             <div class="fs16 fw400 lh24">{{ user.territoireIntervention.name }}</div>
  28.                                         </div>
  29.                                         {% if user.typologieActeur is defined and user.typologieActeur is not empty %}
  30.                                             <div class="dflex aic">
  31.                                                 <img src="/resources/img/user-offre-icon.svg" alt="Profil" class="pr1em" width="17" height="19">
  32.                                                 <div class="fs16 fw400 lh24">{{ user.typologieActeur.name }}</div>
  33.                                             </div>
  34.                                         {% endif %}
  35.                                     </div>
  36.                                 </div>
  37.                             {% endif %}
  38.                         </div>
  39.                     </li>
  40.                 {% endfor %}
  41.             {% else %}
  42.                 <div>Aucun acteur identifié sur ce territoire</div>
  43.             {% endif %}
  44.         </ul>
  45.     </div>
  46. </div>