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

Open in your IDE?
  1. 
    {% if objectUserArray is not empty %}
    <aside class="container mt-5 mb-5" id="pro">
        {# <div class="d-flex justify-content-center align-items-center">
            <img class="logo-title pr-3" src="{{ absolute_url(asset("/img/charteGraphique/logo/icon_logo_color.svg")) }}"
                alt="logo">
            <h2 class="title">Nos professionnels</h2>
        </div>#}
        <div class="justify-content-center align-items-center mx-0 px-0 my-0 py-0 title-section">
            <h2 class="title text-right mr-2 py-lg-2 py-0 my-lg-2 my-0">Nos professionnels</h2>
        </div>
    
        <div class="row justify-content-center mt-5 mx-0 px-0" id="accordion">
    
            {% for user in objectUserArray %}
            {% if user.notation.globalNote == 5 %}
            {% set imgNotation = '5etoile.png' %}
            {% elseif user.notation.globalNote > 4.5 and user.notation.globalNote < 5 or user.notation.globalNote == 4.5 %}
            {% set imgNotation = '4_5etoile.png' %}
            {% elseif user.notation.globalNote > 4 and user.notation.globalNote < 4.49 or user.notation.globalNote == 4 %}
            {% set imgNotation = '4etoile.png' %}
            {% elseif user.notation.globalNote > 3.5 and user.notation.globalNote < 4 or user.notation.globalNote == 3.5 %}
            {% set imgNotation = '3_5etoile.png' %}
            {% elseif user.notation.globalNote > 3 and user.notation.globalNote < 3.5 or user.notation.globalNote == 3 %}
            {% set imgNotation = '3etoile.png' %}
            {% elseif user.notation.globalNote > 2.5 and user.notation.globalNote < 3 or user.notation.globalNote == 2.5 %}
            {% set imgNotation = '2_5etoile.png' %}
            {% elseif user.notation.globalNote > 2 and user.notation.globalNote < 2.5 or user.notation.globalNote == 2 %}
            {% set imgNotation = '2etoile.png' %}
            {% elseif user.notation.globalNote > 1.5 and user.notation.globalNote < 2 or user.notation.globalNote == 1.5 %}
            {% set imgNotation = '1_5etoile.png' %}
            {% elseif user.notation.globalNote > 1 and user.notation.globalNote < 1.5 or user.notation.globalNote == 1 %}
            {% set imgNotation = '1etoile.png' %}
            {% elseif user.notation.globalNote > 0.5 and user.notation.globalNote < 1 or user.notation.globalNote == 0.5 %}
            {% set imgNotation = '0_5etoile.png' %}
            {% else %}
            {% set imgNotation = 'aucuneEtoile.png' %}
            {% endif %}
            {% if user.compagny is not null %}
                {% include('clientWeb/home/_prestataireCardTemplate.html.twig') %}
            {% endif %}
    
    
            {% endfor %}
            </div>
            
        <div class="text-center mt-5">
            <a href="{{ path('siteProfessionnal') }}" class="btn btn-homepage">Plus de prestataires</a>
        </div>
    </aside>
    {% endif %}