templates/clientWeb/listProfessionnal/pro.html.twig line 1

Open in your IDE?
  1. {% if objectUserArray is not empty %}
  2. <aside class="container mt-5 mb-5" id="pro">
  3.     {# <div class="d-flex justify-content-center align-items-center">
  4.         <img class="logo-title pr-3" src="{{ absolute_url(asset("/img/charteGraphique/logo/icon_logo_color.svg")) }}"
  5.             alt="logo">
  6.         <h2 class="title">Nos professionnels</h2>
  7.     </div>#}
  8.     <div class="justify-content-center align-items-center mx-0 px-0 my-0 py-0 title-section">
  9.         <h2 class="title text-right mr-2 py-lg-2 py-0 my-lg-2 my-0">Nos professionnels</h2>
  10.     </div>
  11.     <div class="row justify-content-center mt-5 mx-0 px-0" id="accordion">
  12.         {% for user in objectUserArray %}
  13.         {% if user.notation.globalNote == 5 %}
  14.         {% set imgNotation = '5etoile.png' %}
  15.         {% elseif user.notation.globalNote > 4.5 and user.notation.globalNote < 5 or user.notation.globalNote == 4.5 %}
  16.         {% set imgNotation = '4_5etoile.png' %}
  17.         {% elseif user.notation.globalNote > 4 and user.notation.globalNote < 4.49 or user.notation.globalNote == 4 %}
  18.         {% set imgNotation = '4etoile.png' %}
  19.         {% elseif user.notation.globalNote > 3.5 and user.notation.globalNote < 4 or user.notation.globalNote == 3.5 %}
  20.         {% set imgNotation = '3_5etoile.png' %}
  21.         {% elseif user.notation.globalNote > 3 and user.notation.globalNote < 3.5 or user.notation.globalNote == 3 %}
  22.         {% set imgNotation = '3etoile.png' %}
  23.         {% elseif user.notation.globalNote > 2.5 and user.notation.globalNote < 3 or user.notation.globalNote == 2.5 %}
  24.         {% set imgNotation = '2_5etoile.png' %}
  25.         {% elseif user.notation.globalNote > 2 and user.notation.globalNote < 2.5 or user.notation.globalNote == 2 %}
  26.         {% set imgNotation = '2etoile.png' %}
  27.         {% elseif user.notation.globalNote > 1.5 and user.notation.globalNote < 2 or user.notation.globalNote == 1.5 %}
  28.         {% set imgNotation = '1_5etoile.png' %}
  29.         {% elseif user.notation.globalNote > 1 and user.notation.globalNote < 1.5 or user.notation.globalNote == 1 %}
  30.         {% set imgNotation = '1etoile.png' %}
  31.         {% elseif user.notation.globalNote > 0.5 and user.notation.globalNote < 1 or user.notation.globalNote == 0.5 %}
  32.         {% set imgNotation = '0_5etoile.png' %}
  33.         {% else %}
  34.         {% set imgNotation = 'aucuneEtoile.png' %}
  35.         {% endif %}
  36.         {% if user.compagny is not null %}
  37.             {% include('clientWeb/home/_prestataireCardTemplate.html.twig') %}
  38.         {% endif %}
  39.         {% endfor %}
  40.         </div>
  41.         
  42.     <div class="text-center mt-5">
  43.         <a href="{{ path('siteProfessionnal') }}" class="btn btn-homepage">Plus de prestataires</a>
  44.     </div>
  45. </aside>
  46. {% endif %}