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

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

{% set modalClass = 'company' %}
{% set headerClass = 'bg-tangerine' %}
{% set bodyClass = '' %}
{% set footerClass = '' %}

{% block header %}
    <div class="container">
        <div class="row">
            <div class="col-md-4">
                <figure class="img-block">
                    {% if company.logoPath is not empty %}
                    <img alt="" class="img-fluid" src="{{ vich_uploader_asset(company, '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">
                    {{ company.name }}
                </h3>
            </div>
        </div>
    </div>
{% endblock %}

{% block body %}
    <p>{{ company.description|escape }}</p>
{% endblock %}

{% block footer %}
    <div class="text-center">
    {% if company.website is not empty %}
        <a class="btn btn-md" href="{{ company.website }}" target="_blank" title="Visitez le site de {{ company.name }}">{{ 'word.learn_more'|trans({}, 'word') }}</a>
    {% endif %}
    </div>
{% endblock %}