{% extends '@kohinos/common/layout.html.twig' %} {% block content %}
{% include '@kohinos/block/breadcrumb.html.twig' with {'label' : comptoir.name, 'label2': 'Liste de comptoirs', 'url2': path('comptoirs_liste') } %}

{{comptoir.name}}

{% if comptoir.groupe != null %}
{{'Groupe local'|trans}} : {{comptoir.groupe.__toString()}}
{% endif %} {# @TODO : ajouter le lien d'édition uniquement quand l'utilisateur peut l'éditer (Voter?) #} {% if app.user and is_granted('ROLE_SUPER_ADMIN') %} Edit {% endif %}
{% if comptoir.horaires != null %}
{{ 'Horaires'|trans }} : {{ comptoir.horaires|raw }}
{% endif %} {% if comptoir.content != null or comptoir.media != null %}
{% if comptoir.media != null %} {{comptoir.name}} {% endif %} {% if comptoir.content != null %}

{{comptoir.content|raw}}

{% endif %}
{% endif %} {% if comptoir.getFullAddresse() != null %}
{{ 'Adresse'|trans }} :
{{comptoir.getFullAddresse()}}
{# @TODO : afficher la carte avec le POI du comptoir #} {% endif %} {% if comptoir.contacts|length > 0%}
{{ 'Contact'|trans }}{{ (comptoir.contacts|filter(v => v.enabled)|length > 1) ? 's' : '' }} :
    {% for contact in comptoir.contacts|filter(v => v.enabled) %}
  • {{contact.name}}
    {% if contact.tel != null %}{{contact.tel}}
    {% endif %} {% if contact.email != null %}{{contact.email}}{% endif %}
  • {% endfor %}
{% endif %}
{% if comptoir.groupe != null and comptoir.groupe.prestataires|length > 0 %}

{{ 'Prestataires du groupe'|trans }} ({{ comptoir.groupe.prestataires|length }}) :

{% for presta in comptoir.groupe.prestataires|filter(v => v.enabled and not v.mlc) %}
{% include '@kohinos/presta/onepresta.html.twig' %}
{% endfor %}
{% endif %}
{% endblock %}