{% extends 'Front/Render/Modal/layout.html.twig' %}

{% import 'Front/Default/macro.html.twig' as m %}

{% set modalClass = 'partner' %}
{% set headerClass = 'no-padding' %}
{% set bodyClass = 'bg-tangerine' %}
{% set footerClass = 'no-padding' %}

{% block header %}{% endblock %}

{% block body %}
    <div class="container">
        <div class="row">
            <div class="col-md-4">
                <figure class="img-block">
                    {% if partner.logoPath is not empty %}
                    <img alt="" class="img-fluid" src="{{ vich_uploader_asset(partner, 'logoFile')|imagine_filter('500L') }}"/>
                    {% else %}
                    {{ m.svg({class: 'icon-logo', id:'logo--logo-grayscale'}) }}
                    {% endif %}
                </figure>
            </div>
            <div class="col-md-8">
                <h3 class="modal-title">
                    {{ partner.name }}
                </h3>
                <p class="partner-description">{{ partner.description | raw }}</p>
                {% if partner.website is not empty %}
                    <p>Site : <a class="" href="{{ partner.website }}" target="_blank" title="Visitez le site de {{ partner.name }}">{{ partner.website }}</a></p>
                {% endif %}
            </div>
        </div>
    </div>
    
{% endblock %}

{% block footer %}{% endblock %}